Warning, /games/kspaceduel/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 cmake_minimum_required(VERSION 3.16 FATAL_ERROR)
0002 
0003 # Release Service 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_COMPACT_VERSION "${RELEASE_SERVICE_VERSION_MAJOR}${RELEASE_SERVICE_VERSION_MINOR}${RELEASE_SERVICE_VERSION_MICRO}")
0008 
0009 # Bump KSPACEDUEL_BASE_VERSION once new features are added
0010 set(KSPACEDUEL_BASE_VERSION "2.1")
0011 set(KSPACEDUEL_VERSION "${KSPACEDUEL_BASE_VERSION}.${RELEASE_SERVICE_COMPACT_VERSION}")
0012 
0013 project(kspaceduel VERSION ${KSPACEDUEL_VERSION})
0014 
0015 set (QT_MIN_VERSION "5.15.2")
0016 set (KF5_MIN_VERSION "5.90.0")
0017 
0018 find_package(ECM ${KF5_MIN_VERSION} REQUIRED CONFIG)
0019 set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH})
0020 
0021 include(KDEInstallDirs)
0022 include(KDECMakeSettings)
0023 include(KDECompilerSettings NO_POLICY_SCOPE)
0024 
0025 include(ECMAddAppIcon)
0026 include(ECMInstallIcons)
0027 include(ECMSetupVersion)
0028 include(FeatureSummary)
0029 
0030 find_package(Qt${QT_MAJOR_VERSION} ${QT_MIN_VERSION} REQUIRED NO_MODULE COMPONENTS Widgets Svg)
0031 if (QT_MAJOR_VERSION STREQUAL "6")
0032     find_package(Qt6 ${QT_MIN_VERSION} REQUIRED NO_MODULE COMPONENTS SvgWidgets)
0033 endif()
0034 
0035 find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
0036     Config
0037     ConfigWidgets
0038     CoreAddons
0039     Crash
0040     DBusAddons
0041     DocTools
0042     I18n
0043     XmlGui
0044 )
0045 
0046 find_package(KF5KDEGames 7.3.0 REQUIRED)
0047 
0048 add_definitions(
0049     -DQT_DISABLE_DEPRECATED_BEFORE=0x050F00
0050     -DQT_DEPRECATED_WARNINGS_SINCE=0x060000
0051     -DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x055800
0052     -DKF_DEPRECATED_WARNINGS_SINCE=0x060000
0053 )
0054 
0055 add_subdirectory(doc)
0056 add_subdirectory(sprites)
0057 add_subdirectory(pics)
0058 add_subdirectory(icons)
0059 add_subdirectory(src)
0060 
0061 ki18n_install(po)
0062 kdoctools_install(po)
0063 
0064 feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)