Warning, /graphics/kdegraphics-mobipocket/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 cmake_minimum_required (VERSION 3.16 FATAL_ERROR) 0002 0003 project(mobipocket VERSION 2.1.0) 0004 0005 find_package(ECM 5.92.0 REQUIRED NO_MODULE) 0006 set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH} ) 0007 0008 include(KDEInstallDirs) 0009 include(KDECMakeSettings) 0010 include(KDECompilerSettings NO_POLICY_SCOPE) 0011 0012 include(FeatureSummary) 0013 include(ECMGenerateExportHeader) 0014 include(ECMOptionalAddSubdirectory) 0015 include(CMakePackageConfigHelpers) 0016 include(ECMSetupVersion) 0017 include(ECMDeprecationSettings) 0018 0019 set(REQUIRED_QT_VERSION 5.12.0) 0020 find_package(Qt${QT_MAJOR_VERSION} ${REQUIRED_QT_VERSION} CONFIG REQUIRED Core Gui) 0021 0022 if(TARGET Qt6::Core) 0023 find_package(Qt6 REQUIRED COMPONENTS Core5Compat) 0024 endif() 0025 0026 if (QT_MAJOR_VERSION STREQUAL "6") 0027 set(CMAKECONFIG_NAME "QMobipocket6") 0028 else() 0029 set(CMAKECONFIG_NAME "QMobipocket") 0030 endif() 0031 0032 ecm_setup_version(PROJECT 0033 VARIABLE_PREFIX QMOBIPOCKET 0034 VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/lib/qmobipocket_version.h" 0035 PACKAGE_VERSION_FILE "${CMAKE_CURRENT_BINARY_DIR}/${CMAKECONFIG_NAME}ConfigVersion.cmake" 0036 SOVERSION "2" 0037 ) 0038 0039 ecm_set_disabled_deprecation_versions( 0040 QT 6.4 0041 ) 0042 0043 add_subdirectory(lib) 0044 0045 set(CMAKECONFIG_INSTALL_DIR "${KDE_INSTALL_CMAKEPACKAGEDIR}/${CMAKECONFIG_NAME}") 0046 0047 configure_package_config_file( 0048 "${CMAKE_CURRENT_SOURCE_DIR}/QMobipocketConfig.cmake.in" 0049 "${CMAKE_CURRENT_BINARY_DIR}/${CMAKECONFIG_NAME}Config.cmake" 0050 INSTALL_DESTINATION ${CMAKECONFIG_INSTALL_DIR} 0051 ) 0052 0053 install(EXPORT QMobipocketTargets 0054 DESTINATION ${CMAKECONFIG_INSTALL_DIR} 0055 FILE ${CMAKECONFIG_NAME}Targets.cmake 0056 ) 0057 0058 install(FILES 0059 ${CMAKE_CURRENT_BINARY_DIR}/${CMAKECONFIG_NAME}Config.cmake 0060 ${CMAKE_CURRENT_BINARY_DIR}/${CMAKECONFIG_NAME}ConfigVersion.cmake 0061 DESTINATION ${CMAKECONFIG_INSTALL_DIR} 0062 ) 0063 0064 feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES) 0065