Warning, /system/libdebconf-kde/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 cmake_minimum_required(VERSION 3.16)
0002 cmake_policy(SET CMP0048 NEW)
0003 
0004 if (POLICY CMP0043)
0005   cmake_policy(SET CMP0043 NEW)
0006 endif()
0007 if (POLICY CMP0063)
0008   cmake_policy(SET CMP0063 NEW)
0009 endif()
0010 
0011 project(libdebconf-kde VERSION 1.1.1)
0012 
0013 find_package(ECM 0.0.14 REQUIRED NO_MODULE)
0014 set(CMAKE_MODULE_PATH
0015     ${ECM_MODULE_PATH}
0016     ${ECM_KDE_MODULE_DIR}
0017     ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules)
0018 
0019 include(ECMPackageConfigHelpers)
0020 include(ECMSetupVersion)
0021 include(FeatureSummary)
0022 include(KDEInstallDirs)
0023 include(KDECMakeSettings)
0024 include(KDECompilerSettings)
0025 
0026 set(REQUIRED_QT_VERSION 5.2.0) # Used in CMakeConfig to check deps
0027 find_package(Qt5 ${REQUIRED_QT_VERSION} CONFIG REQUIRED
0028     COMPONENTS
0029         Widgets
0030         Network
0031 )
0032 
0033 find_package(KF5 5.0.0 REQUIRED
0034     COMPONENTS
0035         CoreAddons
0036         I18n
0037         IconThemes
0038         TextWidgets
0039         WidgetsAddons
0040 )
0041 
0042 if(ECM_VERSION VERSION_GREATER 1.5.0)
0043     # >1.5 has an optional compatibility option for the package version file.
0044     # TODO: bump dep and remove this check once 1.7 is out.
0045     set(VERSION_COMPAT_OPTION COMPATIBILITY SameMajorVersion)
0046 endif()
0047 ecm_setup_version(${PROJECT_VERSION}
0048     VARIABLE_PREFIX DEBCONF
0049     SOVERSION ${PROJECT_VERSION_MAJOR}
0050     VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/DebconfVersion.h"
0051     PACKAGE_VERSION_FILE "${CMAKE_CURRENT_BINARY_DIR}/DebconfKDEConfigVersion.cmake"
0052         ${VERSION_COMPAT_OPTION}
0053 )
0054 
0055 add_definitions(-DPROJECT_VERSION=\"${PROJECT_VERSION}\")
0056 add_definitions(
0057     -DQT_NO_KEYWORDS
0058     -DQT_NO_CAST_TO_ASCII
0059     -DQT_NO_CAST_FROM_ASCII
0060     -DQT_STRICT_ITERATORS
0061     -DQT_NO_URL_CAST_FROM_STRING
0062     -DQT_NO_CAST_FROM_BYTEARRAY
0063     -DQT_USE_QSTRINGBUILDER
0064     -DQT_DISABLE_DEPRECATED_BEFORE=0x050900
0065 )
0066 
0067 include_directories(
0068     ${CMAKE_CURRENT_SOURCE_DIR}/src
0069     ${CMAKE_CURRENT_SOURCE_DIR}
0070     ${CMAKE_CURRENT_BINARY_DIR}
0071 )
0072 
0073 # create a Config.cmake and a ConfigVersion.cmake file and install them
0074 set(CMAKECONFIG_INSTALL_DIR "${CMAKECONFIG_INSTALL_PREFIX}/DebconfKDE")
0075 
0076 ecm_configure_package_config_file(
0077     "${CMAKE_CURRENT_SOURCE_DIR}/DebconfKDEConfig.cmake.in"
0078     "${CMAKE_CURRENT_BINARY_DIR}/DebconfKDEConfig.cmake"
0079     INSTALL_DESTINATION  ${CMAKECONFIG_INSTALL_DIR})
0080 
0081 install(FILES "${CMAKE_CURRENT_BINARY_DIR}/DebconfKDEConfig.cmake"
0082               "${CMAKE_CURRENT_BINARY_DIR}/DebconfKDEConfigVersion.cmake"
0083     DESTINATION "${CMAKECONFIG_INSTALL_DIR}"
0084     COMPONENT Devel)
0085 install(EXPORT DebconfKDETargets
0086         DESTINATION "${CMAKECONFIG_INSTALL_DIR}"
0087         FILE DebconfKDETargets.cmake
0088         NAMESPACE DebconfKDE::)
0089 
0090 add_subdirectory(src)
0091 add_subdirectory(tools)
0092 
0093 feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)