68 lines
1.7 KiB
CMake
68 lines
1.7 KiB
CMake
|
cmake_minimum_required (VERSION 3.16 FATAL_ERROR)
|
||
|
|
||
|
# KDE Application Version, managed by release script
|
||
|
set(RELEASE_SERVICE_VERSION_MAJOR "22")
|
||
|
set(RELEASE_SERVICE_VERSION_MINOR "08")
|
||
|
set(RELEASE_SERVICE_VERSION_MICRO "3")
|
||
|
set(RELEASE_SERVICE_VERSION "${RELEASE_SERVICE_VERSION_MAJOR}.${RELEASE_SERVICE_VERSION_MINOR}.${RELEASE_SERVICE_VERSION_MICRO}")
|
||
|
|
||
|
project(kdiamond VERSION ${RELEASE_SERVICE_VERSION})
|
||
|
|
||
|
set (QT_MIN_VERSION "5.15.0")
|
||
|
set (KF5_MIN_VERSION "5.90.0")
|
||
|
|
||
|
find_package(ECM ${KF5_MIN_VERSION} REQUIRED CONFIG)
|
||
|
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH} )
|
||
|
|
||
|
include(KDEInstallDirs)
|
||
|
include(KDECMakeSettings)
|
||
|
include(KDECompilerSettings NO_POLICY_SCOPE)
|
||
|
|
||
|
include(FeatureSummary)
|
||
|
include(ECMInstallIcons)
|
||
|
include(ECMAddAppIcon)
|
||
|
include(ECMSetupVersion)
|
||
|
|
||
|
find_package(Qt${QT_MAJOR_VERSION} ${QT_MIN_VERSION} REQUIRED NO_MODULE COMPONENTS Widgets )
|
||
|
find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
|
||
|
CoreAddons
|
||
|
Config
|
||
|
Crash
|
||
|
DBusAddons
|
||
|
WidgetsAddons
|
||
|
Config
|
||
|
I18n
|
||
|
ConfigWidgets
|
||
|
XmlGui
|
||
|
Notifications
|
||
|
NotifyConfig
|
||
|
)
|
||
|
find_package(KF5DocTools ${KF5_MIN_VERSION})
|
||
|
set_package_properties(KF5DocTools PROPERTIES DESCRIPTION
|
||
|
"Tools to generate documentation"
|
||
|
TYPE OPTIONAL
|
||
|
)
|
||
|
|
||
|
find_package(KF5KDEGames 7.3.0 REQUIRED)
|
||
|
|
||
|
add_definitions(
|
||
|
-DQT_DISABLE_DEPRECATED_BEFORE=0x050F00
|
||
|
-DQT_DEPRECATED_WARNINGS_SINCE=0x060000
|
||
|
-DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x055600
|
||
|
-DKF_DEPRECATED_WARNINGS_SINCE=0x060000
|
||
|
)
|
||
|
|
||
|
add_subdirectory(src)
|
||
|
add_subdirectory(sounds)
|
||
|
add_subdirectory(themes)
|
||
|
|
||
|
ki18n_install(po)
|
||
|
|
||
|
if(KF5DocTools_FOUND)
|
||
|
kdoctools_install(po)
|
||
|
add_subdirectory(doc)
|
||
|
endif()
|
||
|
|
||
|
|
||
|
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)
|