Changeset View
Changeset View
Standalone View
Standalone View
CMakeLists.txt
Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Line(s) | |||||
45 | ) | 45 | ) | ||
46 | include_directories( | 46 | include_directories( | ||
47 | ${ZLIB_INCLUDE_DIR} | 47 | ${ZLIB_INCLUDE_DIR} | ||
48 | ) | 48 | ) | ||
49 | 49 | | |||
50 | include(ECMSetupVersion) | 50 | include(ECMSetupVersion) | ||
51 | include(ECMGenerateHeaders) | 51 | include(ECMGenerateHeaders) | ||
52 | include(ECMQtDeclareLoggingCategory) | 52 | include(ECMQtDeclareLoggingCategory) | ||
53 | include(ECMAddQch) | ||||
54 | | ||||
55 | option(BUILD_QCH "Build API documentation in QCH format (for e.g. Qt Assistant, Qt Creator & KDevelop)" OFF) | ||||
dfaure: slightly cryptic for someone who wouldn't know what QCH is. You could add (for opening in Qt… | |||||
What about "Build API documentation in QCH format (for e.g. Qt Assistant, Qt Creator & KDevelop)" kossebau:
What about "Build API documentation in QCH format (for e.g. Qt Assistant, Qt Creator &… | |||||
dfaure: I like it. | |||||
56 | add_feature_info(QCH ${BUILD_QCH} "API documentation in QCH format (for e.g. Qt Assistant, Qt Creator & KDevelop)") | ||||
53 | 57 | | |||
54 | ecm_setup_version(PROJECT | 58 | ecm_setup_version(PROJECT | ||
55 | VARIABLE_PREFIX KARCHIVE | 59 | VARIABLE_PREFIX KARCHIVE | ||
56 | VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/karchive_version.h" | 60 | VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/karchive_version.h" | ||
57 | PACKAGE_VERSION_FILE "${CMAKE_CURRENT_BINARY_DIR}/KF5ArchiveConfigVersion.cmake" | 61 | PACKAGE_VERSION_FILE "${CMAKE_CURRENT_BINARY_DIR}/KF5ArchiveConfigVersion.cmake" | ||
58 | SOVERSION 5) | 62 | SOVERSION 5) | ||
59 | 63 | | |||
60 | add_subdirectory(src) | 64 | add_subdirectory(src) | ||
61 | add_subdirectory(autotests) | 65 | add_subdirectory(autotests) | ||
62 | add_subdirectory(tests) | 66 | add_subdirectory(tests) | ||
63 | 67 | | |||
64 | 68 | | |||
65 | # create a Config.cmake and a ConfigVersion.cmake file and install them | 69 | # create a Config.cmake and a ConfigVersion.cmake file and install them | ||
66 | set(CMAKECONFIG_INSTALL_DIR "${KDE_INSTALL_CMAKEPACKAGEDIR}/KF5Archive") | 70 | set(CMAKECONFIG_INSTALL_DIR "${KDE_INSTALL_CMAKEPACKAGEDIR}/KF5Archive") | ||
67 | 71 | | |||
72 | if (BUILD_QCH) | ||||
73 | ecm_install_qch_export( | ||||
74 | TARGETS KF5Archive_QCH | ||||
75 | FILE KF5ArchiveQchTargets.cmake | ||||
76 | DESTINATION "${CMAKECONFIG_INSTALL_DIR}" | ||||
77 | COMPONENT Devel | ||||
78 | ) | ||||
79 | set(PACKAGE_INCLUDE_QCHTARGETS "include(\"\${CMAKE_CURRENT_LIST_DIR}/KF5ArchiveQchTargets.cmake\")") | ||||
80 | endif() | ||||
81 | | ||||
68 | include(CMakePackageConfigHelpers) | 82 | include(CMakePackageConfigHelpers) | ||
69 | 83 | | |||
70 | configure_package_config_file( | 84 | configure_package_config_file( | ||
71 | "${CMAKE_CURRENT_SOURCE_DIR}/KF5ArchiveConfig.cmake.in" | 85 | "${CMAKE_CURRENT_SOURCE_DIR}/KF5ArchiveConfig.cmake.in" | ||
72 | "${CMAKE_CURRENT_BINARY_DIR}/KF5ArchiveConfig.cmake" | 86 | "${CMAKE_CURRENT_BINARY_DIR}/KF5ArchiveConfig.cmake" | ||
73 | INSTALL_DESTINATION ${CMAKECONFIG_INSTALL_DIR} | 87 | INSTALL_DESTINATION ${CMAKECONFIG_INSTALL_DIR} | ||
74 | ) | 88 | ) | ||
75 | 89 | | |||
Show All 16 Lines |
slightly cryptic for someone who wouldn't know what QCH is. You could add (for opening in Qt Assistant) or something similar?
Then again these days people don't know what Assistant is, they use the embedded help in QtCreator ;)