Changeset View
Changeset View
Standalone View
Standalone View
CMakeLists.txt
Show All 18 Lines | |||||
19 | 19 | | |||
20 | include(KDEInstallDirs) | 20 | include(KDEInstallDirs) | ||
21 | include(KDEFrameworkCompilerSettings NO_POLICY_SCOPE) | 21 | include(KDEFrameworkCompilerSettings NO_POLICY_SCOPE) | ||
22 | include(KDECMakeSettings) | 22 | include(KDECMakeSettings) | ||
23 | include(ECMSetupVersion) | 23 | include(ECMSetupVersion) | ||
24 | include(ECMGenerateHeaders) | 24 | include(ECMGenerateHeaders) | ||
25 | include(ECMAddQch) | 25 | include(ECMAddQch) | ||
26 | include(ECMQtDeclareLoggingCategory) | 26 | include(ECMQtDeclareLoggingCategory) | ||
27 | include(GenerateExportHeader) | 27 | include(ECMGenerateExportHeader) | ||
28 | | ||||
29 | set(EXCLUDE_DEPRECATED_BEFORE_AND_AT 0 CACHE STRING "Control the range of deprecated API excluded from the build [default=0].") | ||||
28 | 30 | | |||
29 | option(BUILD_QCH "Build API documentation in QCH format (for e.g. Qt Assistant, Qt Creator & KDevelop)" OFF) | 31 | option(BUILD_QCH "Build API documentation in QCH format (for e.g. Qt Assistant, Qt Creator & KDevelop)" OFF) | ||
30 | add_feature_info(QCH ${BUILD_QCH} "API documentation in QCH format (for e.g. Qt Assistant, Qt Creator & KDevelop)") | 32 | add_feature_info(QCH ${BUILD_QCH} "API documentation in QCH format (for e.g. Qt Assistant, Qt Creator & KDevelop)") | ||
31 | 33 | | |||
32 | ecm_setup_version(PROJECT | 34 | ecm_setup_version(PROJECT | ||
33 | VARIABLE_PREFIX KSERVICE | 35 | VARIABLE_PREFIX KSERVICE | ||
34 | VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/kservice_version.h" | 36 | VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/kservice_version.h" | ||
35 | PACKAGE_VERSION_FILE "${CMAKE_CURRENT_BINARY_DIR}/KF5ServiceConfigVersion.cmake" | 37 | PACKAGE_VERSION_FILE "${CMAKE_CURRENT_BINARY_DIR}/KF5ServiceConfigVersion.cmake" | ||
Show All 30 Lines | |||||
66 | set_package_properties(BISON PROPERTIES | 68 | set_package_properties(BISON PROPERTIES | ||
67 | URL "http://www.gnu.org/software/bison" | 69 | URL "http://www.gnu.org/software/bison" | ||
68 | DESCRIPTION "general-purpose parser generator" | 70 | DESCRIPTION "general-purpose parser generator" | ||
69 | TYPE REQUIRED | 71 | TYPE REQUIRED | ||
70 | PURPOSE "Required for the Trader parser" | 72 | PURPOSE "Required for the Trader parser" | ||
71 | ) | 73 | ) | ||
72 | 74 | | |||
73 | add_definitions(-DTRANSLATION_DOMAIN=\"kservice5\") | 75 | add_definitions(-DTRANSLATION_DOMAIN=\"kservice5\") | ||
76 | add_definitions(-DKF_DISABLE_DEPRECATED_BEFORE=0x053E00) | ||||
74 | add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x050d00) | 77 | add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x050d00) | ||
75 | add_definitions(-DQT_NO_FOREACH) | 78 | add_definitions(-DQT_NO_FOREACH) | ||
76 | if (IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/po") | 79 | if (IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/po") | ||
77 | ki18n_install(po) | 80 | ki18n_install(po) | ||
78 | 81 | | |||
79 | if (KF5DocTools_FOUND) | 82 | if (KF5DocTools_FOUND) | ||
80 | kdoctools_install(po) | 83 | kdoctools_install(po) | ||
81 | endif() | 84 | endif() | ||
▲ Show 20 Lines • Show All 48 Lines • Show Last 20 Lines |