Changeset View
Changeset View
Standalone View
Standalone View
CMakeLists.txt
Show All 9 Lines | |||||
10 | 10 | | |||
11 | 11 | | |||
12 | set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake ) | 12 | set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake ) | ||
13 | 13 | | |||
14 | include(KDEInstallDirs) | 14 | include(KDEInstallDirs) | ||
15 | include(KDEFrameworkCompilerSettings NO_POLICY_SCOPE) | 15 | include(KDEFrameworkCompilerSettings NO_POLICY_SCOPE) | ||
16 | include(KDECMakeSettings) | 16 | include(KDECMakeSettings) | ||
17 | include(ECMQtDeclareLoggingCategory) | 17 | include(ECMQtDeclareLoggingCategory) | ||
18 | include(ECMGenerateExportHeader) | ||||
19 | include(ECMSetupVersion) | ||||
20 | include(ECMGenerateHeaders) | ||||
21 | | ||||
22 | include(ECMAddQch) | ||||
23 | include(ECMPoQmTools) | ||||
24 | | ||||
25 | set(EXCLUDE_DEPRECATED_BEFORE_AND_AT 0 CACHE STRING "Control the range of deprecated API excluded from the build [default=0].") | ||||
18 | 26 | | |||
19 | set(REQUIRED_QT_VERSION 5.11.0) | 27 | set(REQUIRED_QT_VERSION 5.11.0) | ||
20 | option(SONNET_USE_WIDGETS "Build components using Qt5Widgets" ON) | 28 | option(SONNET_USE_WIDGETS "Build components using Qt5Widgets" ON) | ||
21 | if(SONNET_USE_WIDGETS) | 29 | if(SONNET_USE_WIDGETS) | ||
22 | find_package(Qt5 ${REQUIRED_QT_VERSION} CONFIG REQUIRED Widgets) | 30 | find_package(Qt5 ${REQUIRED_QT_VERSION} CONFIG REQUIRED Widgets) | ||
23 | endif() | 31 | endif() | ||
24 | find_package(Qt5 ${REQUIRED_QT_VERSION} CONFIG REQUIRED Core) | 32 | find_package(Qt5 ${REQUIRED_QT_VERSION} CONFIG REQUIRED Core) | ||
25 | 33 | | |||
26 | 34 | | |||
27 | include(GenerateExportHeader) | | |||
28 | | ||||
29 | include(ECMSetupVersion) | | |||
30 | include(ECMGenerateHeaders) | | |||
31 | | ||||
32 | include(ECMAddQch) | | |||
33 | include(ECMPoQmTools) | | |||
34 | | ||||
35 | ecm_setup_version(PROJECT VARIABLE_PREFIX SONNET | 35 | ecm_setup_version(PROJECT VARIABLE_PREFIX SONNET | ||
36 | VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/sonnet_version.h" | 36 | VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/sonnet_version.h" | ||
37 | PACKAGE_VERSION_FILE "${CMAKE_CURRENT_BINARY_DIR}/KF5SonnetConfigVersion.cmake" | 37 | PACKAGE_VERSION_FILE "${CMAKE_CURRENT_BINARY_DIR}/KF5SonnetConfigVersion.cmake" | ||
38 | SOVERSION 5) | 38 | SOVERSION 5) | ||
39 | 39 | | |||
40 | option(BUILD_QCH "Build API documentation in QCH format (for e.g. Qt Assistant, Qt Creator & KDevelop)" OFF) | 40 | option(BUILD_QCH "Build API documentation in QCH format (for e.g. Qt Assistant, Qt Creator & KDevelop)" OFF) | ||
41 | add_feature_info(QCH ${BUILD_QCH} "API documentation in QCH format (for e.g. Qt Assistant, Qt Creator & KDevelop)") | 41 | add_feature_info(QCH ${BUILD_QCH} "API documentation in QCH format (for e.g. Qt Assistant, Qt Creator & KDevelop)") | ||
42 | 42 | | |||
▲ Show 20 Lines • Show All 53 Lines • Show Last 20 Lines |