Changeset View
Changeset View
Standalone View
Standalone View
CMakeLists.txt
Show All 11 Lines | |||||
12 | include(CheckFunctionExists) | 12 | include(CheckFunctionExists) | ||
13 | 13 | | |||
14 | include(KDEInstallDirs) | 14 | include(KDEInstallDirs) | ||
15 | include(KDECMakeSettings) | 15 | include(KDECMakeSettings) | ||
16 | include(KDECompilerSettings NO_POLICY_SCOPE) | 16 | include(KDECompilerSettings NO_POLICY_SCOPE) | ||
17 | 17 | | |||
18 | include(ECMAddTests) | 18 | include(ECMAddTests) | ||
19 | 19 | | |||
20 | find_package(Qt5 "5.2" REQUIRED COMPONENTS Widgets) | 20 | find_package(Qt5 "5.2" REQUIRED COMPONENTS Widgets) | ||
21 | find_package(KF5 "5.8" REQUIRED COMPONENTS CoreAddons People I18n) | 21 | find_package(KF5 "5.8" REQUIRED COMPONENTS CoreAddons I18n) | ||
22 | find_package(KF5 "5.62" REQUIRED COMPONENTS People) | ||||
apol: I don't understand why you added a new space there. | |||||
It's not necessary, but it results in "REQUIRED" "COMPONENTS" and the first library name lining up across all three lines. sredman: It's not necessary, but it results in "REQUIRED" "COMPONENTS" and the first library name lining… | |||||
22 | 23 | | |||
23 | find_package(KF5Contacts REQUIRED) | 24 | find_package(KF5Contacts REQUIRED) | ||
24 | 25 | | |||
25 | add_subdirectory(src) | 26 | add_subdirectory(src) | ||
26 | add_subdirectory(autotests) | 27 | add_subdirectory(autotests) | ||
27 | 28 | | |||
28 | set(CMAKECONFIG_INSTALL_DIR "${CMAKECONFIG_INSTALL_PREFIX}/KF5PeopleVCard") | 29 | set(CMAKECONFIG_INSTALL_DIR "${CMAKECONFIG_INSTALL_PREFIX}/KF5PeopleVCard") | ||
29 | configure_package_config_file( | 30 | configure_package_config_file( | ||
30 | "${CMAKE_CURRENT_SOURCE_DIR}/KF5PeopleVCardConfig.cmake.in" | 31 | "${CMAKE_CURRENT_SOURCE_DIR}/KF5PeopleVCardConfig.cmake.in" | ||
31 | "${CMAKE_CURRENT_BINARY_DIR}/KF5PeopleVCardConfig.cmake" | 32 | "${CMAKE_CURRENT_BINARY_DIR}/KF5PeopleVCardConfig.cmake" | ||
32 | INSTALL_DESTINATION ${CMAKECONFIG_INSTALL_DIR} | 33 | INSTALL_DESTINATION ${CMAKECONFIG_INSTALL_DIR} | ||
33 | ) | 34 | ) | ||
34 | 35 | | |||
35 | install(FILES "${CMAKE_CURRENT_BINARY_DIR}/KF5PeopleVCardConfig.cmake" | 36 | install(FILES "${CMAKE_CURRENT_BINARY_DIR}/KF5PeopleVCardConfig.cmake" | ||
36 | DESTINATION "${CMAKECONFIG_INSTALL_DIR}" | 37 | DESTINATION "${CMAKECONFIG_INSTALL_DIR}" | ||
37 | COMPONENT Devel ) | 38 | COMPONENT Devel ) |
I don't understand why you added a new space there.