Warning, /education/libkeduvocdocument/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 cmake_minimum_required(VERSION 3.16)
0002 project(LibKEduVocDocument)
0003 
0004 set(QT_MIN_VERSION "5.15.0")
0005 set(KF5_MIN_VERSION "5.91.0")
0006 set(KDE_COMPILERSETTINGS_LEVEL "5.82")
0007 find_package(ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE)
0008 set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
0009 set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH})
0010 include(KDEInstallDirs)
0011 include(KDECompilerSettings NO_POLICY_SCOPE)
0012 include(KDECMakeSettings)
0013 include(GenerateExportHeader)
0014 include(ECMDeprecationSettings)
0015 
0016 find_package(Qt${QT_MAJOR_VERSION} ${QT_MIN_VERSION} REQUIRED NO_MODULE COMPONENTS Xml)
0017 find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS I18n Archive KIO)
0018 
0019 #add_definitions( -Wall -fprofile-arcs -ftest-coverage )
0020 
0021 include_directories(${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR}
0022 )
0023 
0024 
0025 remove_definitions(-DQT_NO_CAST_FROM_ASCII)
0026 remove_definitions(-DQT_NO_CAST_FROM_BYTEARRAY)
0027 remove_definitions(-DQT_NO_KEYWORDS)
0028 
0029 add_definitions(-DQT_NO_CAST_TO_ASCII)
0030 add_definitions(-DQT_NO_URL_CAST_FROM_STRING)
0031 add_definitions(-DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS)
0032 add_definitions(-DTRANSLATION_DOMAIN=\"libkeduvocdocument\")
0033 ecm_set_disabled_deprecation_versions(KF 5.101.0)
0034 add_subdirectory(keduvocdocument)
0035 
0036 configure_file( "${LibKEduVocDocument_SOURCE_DIR}/LibKEduVocDocumentConfig.cmake.in" "${LibKEduVocDocument_BINARY_DIR}/LibKEduVocDocumentConfig.cmake" @ONLY )
0037 
0038 set(_LibKEduVocDocument_CONFIG_DEST "${KDE_INSTALL_CMAKEPACKAGEDIR}/libkeduvocdocument")
0039 
0040 ki18n_install(po)
0041 install( FILES
0042         "${LibKEduVocDocument_BINARY_DIR}/LibKEduVocDocumentConfig.cmake"
0043         DESTINATION "${_LibKEduVocDocument_CONFIG_DEST}" )
0044 install( EXPORT LibKEduVocDocumentTargets
0045          DESTINATION "${_LibKEduVocDocument_CONFIG_DEST}"
0046          NAMESPACE LibKEduVocDocumentImport__
0047          FILE LibKEduVocDocumentTargets.cmake )
0048 feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)