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

0001 cmake_minimum_required(VERSION 3.16)
0002 
0003 # KDE Application Version, managed by release script
0004 set(RELEASE_SERVICE_VERSION_MAJOR "22")
0005 set(RELEASE_SERVICE_VERSION_MINOR "11")
0006 set(RELEASE_SERVICE_VERSION_MICRO "70")
0007 set(RELEASE_SERVICE_VERSION "${RELEASE_SERVICE_VERSION_MAJOR}.${RELEASE_SERVICE_VERSION_MINOR}.${RELEASE_SERVICE_VERSION_MICRO}")
0008 
0009 project(DragonPlayer VERSION ${RELEASE_SERVICE_VERSION})
0010 
0011 set(PROJECT_VERSION ${RELEASE_SERVICE_VERSION})
0012 
0013 set(QT_MIN_VERSION "5.15.2")
0014 set(KF5_MIN_VERSION "5.91.0")
0015 
0016 find_package(ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE)
0017 set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH})
0018 
0019 include(KDEInstallDirs)
0020 include(KDECMakeSettings)
0021 include(KDECompilerSettings NO_POLICY_SCOPE)
0022 
0023 include(ECMInstallIcons)
0024 include(ECMSetupVersion)
0025 include(ECMDeprecationSettings)
0026 include(FeatureSummary)
0027 
0028 find_package(Qt${QT_MAJOR_VERSION} ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS
0029     Core
0030     Widgets
0031 )
0032 
0033 find_package(KF5 ${KF5_MIN_VERSION} REQUIRED
0034     Config
0035     ConfigWidgets
0036     CoreAddons
0037     Crash
0038     DBusAddons
0039     DocTools
0040     I18n
0041     JobWidgets
0042     KIO
0043     Parts
0044     Solid
0045     WidgetsAddons
0046     WindowSystem
0047     XmlGui
0048     Notifications
0049 )
0050 find_package(Phonon4Qt${QT_MAJOR_VERSION} 4.6.60 REQUIRED NO_MODULE)
0051 
0052 include_directories(
0053     ${CMAKE_CURRENT_BINARY_DIR}/src
0054     ${CMAKE_CURRENT_BINARY_DIR}/src/app
0055     ${CMAKE_CURRENT_SOURCE_DIR}/src
0056     ${CMAKE_CURRENT_SOURCE_DIR}/src/app
0057     ${CMAKE_CURRENT_BINARY_DIR}
0058     )
0059 
0060 include_directories(BEFORE SYSTEM ${PHONON_INCLUDES})
0061 
0062 include(CheckIncludeFiles)
0063 check_include_files(unistd.h HAVE_UNISTD_H)
0064 
0065 configure_file(config.h.in ${CMAKE_CURRENT_BINARY_DIR}/config.h)
0066 
0067 ecm_set_disabled_deprecation_versions(
0068     QT 5.15.2
0069     KF 5.91
0070 )
0071 
0072 add_definitions(-DTRANSLATION_DOMAIN="dragonplayer")
0073 
0074 add_subdirectory( src/app )
0075 add_subdirectory( misc )
0076 add_subdirectory( doc )
0077 
0078 ki18n_install(po)
0079 kdoctools_install(po)
0080 
0081 feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)