Warning, /libraries/croutons/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 # SPDX-FileCopyrightText: 2021 Carson Black <uhhadd@gmail.com> 0002 # 0003 # SPDX-License-Identifier: MIT 0004 0005 cmake_minimum_required(VERSION 3.16) 0006 0007 set(CROUTONS_VERSION 1.0) 0008 set(CROUTONS_SOVERSION 1) 0009 0010 project(Croutons VERSION ${CROUTONS_VERSION}) 0011 0012 include(FeatureSummary) 0013 find_package(ECM 5.85.0 NO_MODULE) 0014 set_package_properties(ECM PROPERTIES TYPE REQUIRED DESCRIPTION "Extra CMake Modules." URL "https://commits.kde.org/extra-cmake-modules") 0015 feature_summary(WHAT REQUIRED_PACKAGES_NOT_FOUND FATAL_ON_MISSING_REQUIRED_PACKAGES) 0016 0017 set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ) 0018 0019 include(KDEInstallDirs) 0020 include(KDECMakeSettings) 0021 include(ECMGenerateHeaders) 0022 include(CMakePackageConfigHelpers) 0023 0024 find_package(Qt5 COMPONENTS Core Qml REQUIRED) 0025 0026 feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES) 0027 0028 set(CMAKECONFIG_INSTALL_DIR "${KDE_INSTALL_CMAKEPACKAGEDIR}/Croutons") 0029 0030 configure_package_config_file("${CMAKE_CURRENT_SOURCE_DIR}/CroutonsConfig.cmake.in" "${CMAKE_CURRENT_BINARY_DIR}/CroutonsConfig.cmake" 0031 INSTALL_DESTINATION ${CMAKECONFIG_INSTALL_DIR} 0032 ) 0033 0034 add_subdirectory(lib) 0035 0036 install(EXPORT CroutonsTargets DESTINATION "${CMAKECONFIG_INSTALL_DIR}" FILE CroutonsTargets.cmake )