Warning, /multimedia/libkcompactdisc/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 ´╗┐cmake_minimum_required(VERSION 3.16)
0002 
0003 project(KCompactDisc VERSION 5.0.0)
0004 
0005 set(QT_MIN_VERSION "5.15.2")
0006 set(KF_MIN_VERSION "5.90.0")
0007 
0008 # Dependencies
0009 include(FeatureSummary)
0010 find_package(ECM ${KF_MIN_VERSION} NO_MODULE)
0011 set_package_properties(ECM PROPERTIES TYPE REQUIRED DESCRIPTION "Extra CMake Modules." URL "https://commits.kde.org/extra-cmake-modules")
0012 
0013 set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
0014 set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH})
0015 
0016 include(KDEInstallDirs)
0017 include(KDECMakeSettings)
0018 include(KDECompilerSettings NO_POLICY_SCOPE)
0019 
0020 include(ECMGenerateHeaders)
0021 include(ECMSetupVersion)
0022 include(ECMGeneratePriFile)
0023 include(GenerateExportHeader)
0024 include(CMakePackageConfigHelpers)
0025 
0026 # Qt5, KF5 and Phonon Packages
0027 
0028 find_package(Qt${QT_MAJOR_VERSION} ${QT_MIN_VERSION} REQUIRED COMPONENTS Core DBus)
0029 find_package(KF5 ${KF_MIN_VERSION} REQUIRED COMPONENTS
0030     Solid
0031     I18n
0032 )
0033 find_package(Phonon4Qt${QT_MAJOR_VERSION} 4.8.0 CONFIG REQUIRED)
0034 
0035 # Sources
0036 
0037 add_definitions(
0038     -DQT_DISABLE_DEPRECATED_BEFORE=0x050F00
0039     -DQT_DEPRECATED_WARNINGS_SINCE=0x060000
0040     -DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x055800
0041     -DKF_DEPRECATED_WARNINGS_SINCE=0x060000
0042 )
0043 
0044 add_subdirectory(src)
0045 if(BUILD_TESTING)
0046     add_subdirectory(tests)
0047 endif()
0048 
0049 ki18n_install(po)
0050 
0051 feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)