Warning, /games/kpat/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 "24") 0005 set(RELEASE_SERVICE_VERSION_MINOR "04") 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(kpat VERSION ${RELEASE_SERVICE_VERSION}) 0010 0011 set(QT_MIN_VERSION "6.5.0") 0012 set(KF_MIN_VERSION "5.245.0") 0013 0014 find_package(ECM ${KF_MIN_VERSION} REQUIRED CONFIG) 0015 set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake ${ECM_MODULE_PATH}) 0016 0017 include(KDEInstallDirs) 0018 include(KDECMakeSettings) 0019 include(KDECompilerSettings NO_POLICY_SCOPE) 0020 0021 include(KDEGitCommitHooks) 0022 include(KDEClangFormat) 0023 include(ECMAddAppIcon) 0024 include(ECMInstallIcons) 0025 include(ECMQtDeclareLoggingCategory) 0026 include(ECMSetupVersion) 0027 include(ECMGenerateHeaders) 0028 include(ECMDeprecationSettings) 0029 include(FindPkgConfig) 0030 include(FeatureSummary) 0031 include(GenerateExportHeader) 0032 0033 include(InternalMacros) 0034 0035 option(WITH_BH_SOLVER "Make use of https://github.com/shlomif/black-hole-solitaire for solving Golf" ON) 0036 0037 find_package(Qt6 ${QT_MIN_VERSION} REQUIRED COMPONENTS 0038 Widgets 0039 Svg 0040 Test 0041 Xml 0042 ) 0043 0044 find_package(KF6 ${KF_MIN_VERSION} REQUIRED COMPONENTS 0045 Completion 0046 Config 0047 ConfigWidgets 0048 CoreAddons 0049 Crash 0050 DBusAddons 0051 DocTools 0052 GuiAddons 0053 I18n 0054 KIO 0055 NewStuff 0056 WidgetsAddons 0057 XmlGui 0058 ) 0059 0060 find_package(KDEGames6 6.0.0 REQUIRED) 0061 0062 find_package(FreecellSolver) 0063 set_package_properties(FreecellSolver PROPERTIES TYPE REQUIRED) 0064 0065 if (WITH_BH_SOLVER) 0066 find_package(BlackHoleSolver) 0067 set_package_properties(BlackHoleSolver PROPERTIES TYPE REQUIRED) 0068 endif() 0069 0070 ecm_set_disabled_deprecation_versions( 0071 QT 6.5 0072 KF 5.239 0073 KDEGAMES 6.0 0074 ) 0075 0076 add_subdirectory(icons) 0077 add_subdirectory(mimetypes) 0078 add_subdirectory(previews) 0079 add_subdirectory(sounds) 0080 add_subdirectory(themes) 0081 add_subdirectory(doc) 0082 add_subdirectory(src) 0083 if (BUILD_TESTING) 0084 add_subdirectory(autotests) 0085 endif() 0086 0087 ki18n_install(po) 0088 kdoctools_install(po) 0089 0090 feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES) 0091 0092 file(GLOB_RECURSE ALL_CLANG_FORMAT_SOURCE_FILES src/*.cpp src/*.h) 0093 kde_clang_format(${ALL_CLANG_FORMAT_SOURCE_FILES}) 0094 0095 kde_configure_git_pre_commit_hook(CHECKS CLANG_FORMAT)