Changeset View
Changeset View
Standalone View
Standalone View
CMakeLists.txt
Show All 21 Lines | |||||
22 | if(DEFINED STATIC_LIBRARY) | 22 | if(DEFINED STATIC_LIBRARY) | ||
23 | message(FATAL_ERROR "Use the BUILD_SHARED_LIBS=OFF option to build a static library, STATIC_LIBRARY is no longer a supported option") | 23 | message(FATAL_ERROR "Use the BUILD_SHARED_LIBS=OFF option to build a static library, STATIC_LIBRARY is no longer a supported option") | ||
24 | endif() | 24 | endif() | ||
25 | 25 | | |||
26 | # Make CPack available to easy generate binary packages | 26 | # Make CPack available to easy generate binary packages | ||
27 | include(CPack) | 27 | include(CPack) | ||
28 | include(FeatureSummary) | 28 | include(FeatureSummary) | ||
29 | 29 | | |||
30 | find_package(Qt5 ${REQUIRED_QT_VERSION} REQUIRED NO_MODULE COMPONENTS Core Concurrent Quick Gui Svg QuickControls2) | 30 | find_package(Qt5 ${REQUIRED_QT_VERSION} REQUIRED NO_MODULE COMPONENTS Core Quick Gui Svg QuickControls2) | ||
31 | if (BUILD_TESTING) | 31 | if (BUILD_TESTING) | ||
32 | find_package(Qt5QuickTest ${REQUIRED_QT_VERSION} CONFIG QUIET) | 32 | find_package(Qt5QuickTest ${REQUIRED_QT_VERSION} CONFIG QUIET) | ||
33 | endif() | 33 | endif() | ||
34 | add_definitions(-DQT_NO_FOREACH) | 34 | add_definitions(-DQT_NO_FOREACH) | ||
35 | set(CMAKE_AUTOMOC ON) | 35 | set(CMAKE_AUTOMOC ON) | ||
36 | set(AUTOMOC_MOC_OPTIONS -Muri=org.kde.kirigami) | 36 | set(AUTOMOC_MOC_OPTIONS -Muri=org.kde.kirigami) | ||
37 | set(CMAKE_INCLUDE_CURRENT_DIR ON) | 37 | set(CMAKE_INCLUDE_CURRENT_DIR ON) | ||
38 | 38 | | |||
▲ Show 20 Lines • Show All 93 Lines • Show Last 20 Lines |