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.90.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 
0015 find_package(Qt${QT_MAJOR_VERSION} ${QT_MIN_VERSION} REQUIRED NO_MODULE COMPONENTS Xml)
0016 find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS I18n Archive KIO)
0017 
0018 #add_definitions( -Wall -fprofile-arcs -ftest-coverage )
0019 
0020 include_directories(${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR}
0021 )
0022 
0023 
0024 remove_definitions(-DQT_NO_CAST_FROM_ASCII)
0025 remove_definitions(-DQT_NO_CAST_FROM_BYTEARRAY)
0026 remove_definitions(-DQT_NO_KEYWORDS)
0027 
0028 add_definitions(-DQT_NO_CAST_TO_ASCII)
0029 add_definitions(-DQT_NO_URL_CAST_FROM_STRING)
0030 add_definitions(-DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS)
0031 add_definitions(-DTRANSLATION_DOMAIN=\"libkeduvocdocument\")
0032 
0033 add_subdirectory(keduvocdocument)
0034 
0035 configure_file( "${LibKEduVocDocument_SOURCE_DIR}/LibKEduVocDocumentConfig.cmake.in" "${LibKEduVocDocument_BINARY_DIR}/LibKEduVocDocumentConfig.cmake" @ONLY )
0036 
0037 set(_LibKEduVocDocument_CONFIG_DEST "${KDE_INSTALL_LIBDIR}/cmake/libkeduvocdocument")
0038 
0039 ki18n_install(po)
0040 install( FILES
0041         "${LibKEduVocDocument_BINARY_DIR}/LibKEduVocDocumentConfig.cmake"
0042         DESTINATION "${_LibKEduVocDocument_CONFIG_DEST}" )
0043 install( EXPORT LibKEduVocDocumentTargets
0044          DESTINATION "${_LibKEduVocDocument_CONFIG_DEST}"
0045          NAMESPACE LibKEduVocDocumentImport__
0046          FILE LibKEduVocDocumentTargets.cmake )
0047 feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)