Warning, /graphics/kcolorchooser/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(kcolorchooser VERSION ${RELEASE_SERVICE_VERSION})
0010 
0011 set(QT_MIN_VERSION     "6.5.0")
0012 set(KF5_MIN_VERSION    "5.240.0")
0013 
0014 find_package(ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE)
0015 set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
0016 
0017 include(ECMInstallIcons)
0018 include(ECMAddAppIcon)
0019 include(KDEInstallDirs)
0020 include(KDECompilerSettings NO_POLICY_SCOPE)
0021 include(KDECMakeSettings)
0022 include(ECMSetupVersion)
0023 include(ECMDeprecationSettings)
0024 
0025 find_package(Qt6 ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS
0026   Core
0027   Gui
0028   Widgets)
0029 find_package(KF6 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
0030   CoreAddons
0031   I18n
0032   XmlGui)
0033 
0034 add_definitions(-DQT_NO_URL_CAST_FROM_STRING)
0035 ecm_set_disabled_deprecation_versions(QT 6.5
0036      KF 5.240.0
0037     )
0038 
0039 ecm_setup_version(${RELEASE_SERVICE_VERSION} VARIABLE_PREFIX KCOLORCHOOSER VERSION_HEADER kcolorchooser_version.h)
0040 
0041 add_executable(kcolorchooser)
0042 target_sources(kcolorchooser PRIVATE kcolorchooser.cpp )
0043 
0044 
0045 target_link_libraries(kcolorchooser
0046         Qt6::Gui
0047         KF6::CoreAddons
0048         KF6::I18n
0049         KF6::XmlGui
0050 )
0051 
0052 install(TARGETS kcolorchooser  ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
0053 install(PROGRAMS org.kde.kcolorchooser.desktop DESTINATION  ${KDE_INSTALL_APPDIR})
0054 
0055 ecm_install_icons(ICONS
0056   16-apps-kcolorchooser.png
0057   22-apps-kcolorchooser.png
0058   DESTINATION ${KDE_INSTALL_ICONDIR}
0059   THEME hicolor)
0060 
0061 install(FILES org.kde.kcolorchooser.appdata.xml  DESTINATION  ${KDE_INSTALL_METAINFODIR})
0062 
0063 ki18n_install(po)