pimageformats/CMakeLists.txt

20 lines
459 B
CMake
Raw Normal View History

project(pimageformats)
2020-07-04 22:51:42 +08:00
cmake_minimum_required(VERSION 3.9.5)
2020-07-04 22:51:42 +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)
if(BUILD_EXPERIMENTAL_PLUGINS)
add_subdirectory(${CMAKE_SOURCE_DIR}/vendor/libsai)
endif()
2020-07-04 22:51:42 +08:00
add_subdirectory(imageformats)