Warning, /utilities/ktimer/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 # KDE Application Version, managed by release script
0002 set (RELEASE_SERVICE_VERSION_MAJOR "22")
0003 set (RELEASE_SERVICE_VERSION_MINOR "11")
0004 set (RELEASE_SERVICE_VERSION_MICRO "70")
0005 set (RELEASE_SERVICE_VERSION "${RELEASE_SERVICE_VERSION_MAJOR}.${RELEASE_SERVICE_VERSION_MINOR}.${RELEASE_SERVICE_VERSION_MICRO}")
0006 cmake_minimum_required (VERSION 3.16 FATAL_ERROR)
0007 project(ktimer VERSION ${RELEASE_SERVICE_VERSION})
0008 
0009 set (QT_MIN_VERSION "5.15.2")
0010 set(KF5_MIN_VERSION "5.90.0")
0011 
0012 find_package (ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE)
0013 set (CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
0014 
0015 include(KDEInstallDirs)
0016 include(KDECMakeSettings)
0017 include(KDECompilerSettings NO_POLICY_SCOPE)
0018 
0019 include(ECMInstallIcons)
0020 include(ECMAddAppIcon)
0021 
0022 find_package (Qt${QT_MAJOR_VERSION} ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS
0023     Core
0024     Widgets
0025 )
0026 if (QT_MAJOR_VERSION STREQUAL "6")
0027     find_package(Qt6Core5Compat)
0028 endif()
0029 
0030 find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
0031     I18n
0032     WidgetsAddons
0033     KIO
0034     DBusAddons
0035     Notifications
0036 )
0037 
0038 find_package(KF5DocTools ${KF5_MIN_VERSION})
0039 set_package_properties(KF5DocTools PROPERTIES DESCRIPTION
0040     "Tools to generate documentation"
0041     TYPE OPTIONAL
0042 )
0043 
0044 add_definitions(
0045     -DQT_DISABLE_DEPRECATED_BEFORE=0x050f00
0046     -DQT_DEPRECATED_WARNINGS_SINCE=0x060000
0047     -DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x055800
0048     -DKF_DEPRECATED_WARNINGS_SINCE=0x060000
0049 )
0050 
0051 add_executable(ktimer)
0052 
0053 configure_file(config-ktimer.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-ktimer.h)
0054 
0055 
0056 target_sources(ktimer PRIVATE main.cpp ktimer.cpp ktimer.h)
0057 
0058 ki18n_wrap_ui(ktimer prefwidget.ui )
0059 
0060 file(GLOB ICONS_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/*-apps-ktimer.png")
0061 ecm_add_app_icon(ktimer ICONS ${ICONS_SRCS})
0062 
0063 
0064 target_link_libraries(ktimer  KF5::I18n KF5::KIOWidgets KF5::ConfigWidgets KF5::Notifications KF5::DBusAddons)
0065 
0066 install(TARGETS ktimer  ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} )
0067 
0068 
0069 ########### install files ###############
0070 
0071 install( PROGRAMS org.kde.ktimer.desktop  DESTINATION ${KDE_INSTALL_APPDIR})
0072 install(FILES org.kde.ktimer.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR})
0073 
0074 ecm_install_icons( ICONS 128-apps-ktimer.png  16-apps-ktimer.png  32-apps-ktimer.png  48-apps-ktimer.png DESTINATION ${KDE_INSTALL_ICONDIR} THEME hicolor  )
0075 if(KF5DocTools_FOUND)
0076     kdoctools_install(po)
0077     add_subdirectory(doc)
0078 endif()
0079 ki18n_install(po)
0080 
0081 feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)