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

0001 cmake_minimum_required (VERSION 3.16 FATAL_ERROR)
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(kblocks VERSION ${RELEASE_SERVICE_VERSION})
0010 
0011 set (QT_MIN_VERSION "5.15.0")
0012 set (KF5_MIN_VERSION "5.90.0")
0013 
0014 find_package(ECM ${KF5_MIN_VERSION} REQUIRED CONFIG)
0015 set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake ${ECM_MODULE_PATH})
0016 
0017 include(KDEInstallDirs)
0018 include(KDECMakeSettings)
0019 include(KDECompilerSettings NO_POLICY_SCOPE)
0020 
0021 include(ECMAddAppIcon)
0022 include(ECMAddTests)
0023 include(ECMQtDeclareLoggingCategory)
0024 include(ECMSetupVersion)
0025 include(ECMInstallIcons)
0026 include(FeatureSummary)
0027 include(InternalMacros)
0028 
0029 find_package(Qt${QT_MAJOR_VERSION} ${QT_MIN_VERSION} REQUIRED NO_MODULE COMPONENTS Test Widgets Svg Network)
0030 if (QT_MAJOR_VERSION STREQUAL "6")
0031     find_package(Qt6 ${QT_MIN_VERSION} REQUIRED NO_MODULE COMPONENTS SvgWidgets)
0032 endif()
0033 find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
0034     Config
0035     ConfigWidgets
0036     CoreAddons
0037     Crash
0038     DocTools
0039     DBusAddons
0040     I18n
0041     WidgetsAddons
0042     XmlGui
0043 )
0044 
0045 find_package(KF5KDEGames 7.1.0 REQUIRED)
0046 
0047 add_subdirectory(icons)
0048 add_subdirectory(themes)
0049 add_subdirectory(sounds)
0050 add_subdirectory(doc)
0051 add_subdirectory(src)
0052 
0053 if(BUILD_TESTING)
0054     add_subdirectory(autotests)
0055 endif()
0056 
0057 ki18n_install(po)
0058 kdoctools_install(po)
0059 
0060 install(FILES kblocks.knsrc  DESTINATION  ${KDE_INSTALL_DATADIR}/knsrcfiles)
0061 
0062 feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)