Changeset View
Changeset View
Standalone View
Standalone View
CMakeLists.txt
Show All 12 Lines | |||||
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 | set(REQUIRED_QT_VERSION 5.11.0) | 17 | set(REQUIRED_QT_VERSION 5.11.0) | ||
18 | find_package(Qt5 ${REQUIRED_QT_VERSION} CONFIG REQUIRED Widgets) | 18 | find_package(Qt5 ${REQUIRED_QT_VERSION} CONFIG REQUIRED Widgets) | ||
19 | 19 | | |||
20 | 20 | | |||
21 | include(GenerateExportHeader) | 21 | include(ECMGenerateExportHeader) | ||
22 | include(CMakePackageConfigHelpers) | 22 | include(CMakePackageConfigHelpers) | ||
23 | include(ECMSetupVersion) | 23 | include(ECMSetupVersion) | ||
24 | include(ECMGenerateHeaders) | 24 | include(ECMGenerateHeaders) | ||
25 | include(ECMAddQch) | 25 | include(ECMAddQch) | ||
26 | include(ECMPoQmTools) | 26 | include(ECMPoQmTools) | ||
27 | include(ECMQtDeclareLoggingCategory) | 27 | include(ECMQtDeclareLoggingCategory) | ||
28 | 28 | | |||
29 | ecm_setup_version(PROJECT VARIABLE_PREFIX KWIDGETSADDONS | 29 | ecm_setup_version(PROJECT VARIABLE_PREFIX KWIDGETSADDONS | ||
30 | VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/kwidgetsaddons_version.h" | 30 | VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/kwidgetsaddons_version.h" | ||
31 | PACKAGE_VERSION_FILE "${CMAKE_CURRENT_BINARY_DIR}/KF5WidgetsAddonsConfigVersion.cmake" | 31 | PACKAGE_VERSION_FILE "${CMAKE_CURRENT_BINARY_DIR}/KF5WidgetsAddonsConfigVersion.cmake" | ||
32 | SOVERSION 5) | 32 | SOVERSION 5) | ||
33 | 33 | | |||
34 | set(EXCLUDE_DEPRECATED_BEFORE_AND_AT 0 CACHE STRING "Control the range of deprecated API excluded from the build [default=0].") | ||||
35 | | ||||
34 | option(BUILD_QCH "Build API documentation in QCH format (for e.g. Qt Assistant, Qt Creator & KDevelop)" OFF) | 36 | option(BUILD_QCH "Build API documentation in QCH format (for e.g. Qt Assistant, Qt Creator & KDevelop)" OFF) | ||
35 | add_feature_info(QCH ${BUILD_QCH} "API documentation in QCH format (for e.g. Qt Assistant, Qt Creator & KDevelop)") | 37 | add_feature_info(QCH ${BUILD_QCH} "API documentation in QCH format (for e.g. Qt Assistant, Qt Creator & KDevelop)") | ||
36 | 38 | | |||
37 | option(BUILD_DESIGNERPLUGIN "Build plugin for Qt Designer" ON) | 39 | option(BUILD_DESIGNERPLUGIN "Build plugin for Qt Designer" ON) | ||
38 | add_feature_info(DESIGNERPLUGIN ${BUILD_DESIGNERPLUGIN} "Build plugin for Qt Designer") | 40 | add_feature_info(DESIGNERPLUGIN ${BUILD_DESIGNERPLUGIN} "Build plugin for Qt Designer") | ||
39 | 41 | | |||
40 | 42 | | |||
41 | if (IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/po") | 43 | if (IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/po") | ||
▲ Show 20 Lines • Show All 43 Lines • Show Last 20 Lines |