2023-03-02 23:26:09 +08:00
|
|
|
project(pimageformats)
|
2020-07-04 22:51:42 +08:00
|
|
|
|
2023-03-02 23:26:09 +08:00
|
|
|
cmake_minimum_required(VERSION 3.9.5)
|
2020-07-04 22:51:42 +08:00
|
|
|
|
2023-03-02 23:26:09 +08:00
|
|
|
include(GNUInstallDirs)
|
|
|
|
|
|
|
|
option(BUILD_EXPERIMENTAL_PLUGINS "Enable the build of imageformats plugin(s) that might not working" ON)
|
2020-07-04 22:51:42 +08:00
|
|
|
|
|
|
|
set(CMAKE_AUTOMOC ON)
|
|
|
|
set(CMAKE_AUTORCC ON)
|
|
|
|
set(QT_MINIMUM_VERSION "5.10")
|
|
|
|
|
|
|
|
find_package(Qt5 ${QT_MINIMUM_VERSION} CONFIG REQUIRED Gui)
|
|
|
|
|
2023-03-02 23:26:09 +08:00
|
|
|
if(BUILD_EXPERIMENTAL_PLUGINS)
|
|
|
|
add_subdirectory(${CMAKE_SOURCE_DIR}/vendor/libsai)
|
|
|
|
endif()
|
|
|
|
|
2020-07-04 22:51:42 +08:00
|
|
|
add_subdirectory(imageformats)
|