Warning, /utilities/yakuake/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(yakuake VERSION ${RELEASE_SERVICE_VERSION})
0010 
0011 set (QT_MIN_VERSION "5.15.2")
0012 set (KF5_MIN_VERSION "5.90")
0013 
0014 find_package(ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE)
0015 set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH})
0016 
0017 include(KDEInstallDirs)
0018 include(KDECMakeSettings)
0019 include(KDECompilerSettings NO_POLICY_SCOPE)
0020 include(ECMInstallIcons)
0021 include(ECMAddAppIcon)
0022 include(FeatureSummary)
0023 include(KDEClangFormat)
0024 include(KDEGitCommitHooks)
0025 include(ECMGenerateDBusServiceFile)
0026 
0027 add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x050f00)
0028 add_definitions(-DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x055900)
0029 
0030 ### Security concerns about sendText and runCommand dbus methods being public
0031 option(REMOVE_SENDTEXT_RUNCOMMAND_DBUS_METHODS "yakuake: remove runCommand dbus methods" OFF)
0032 
0033 find_package(Qt${QT_MAJOR_VERSION} ${QT_MIN_VERSION} CONFIG REQUIRED Core Widgets Svg)
0034 
0035 find_package(KF5 ${KF5_MIN_VERSION} REQUIRED
0036     Archive
0037     Config
0038     CoreAddons
0039     Crash
0040     DBusAddons
0041     GlobalAccel
0042     I18n
0043     IconThemes
0044     KIO
0045     NewStuff
0046     Notifications
0047     NotifyConfig
0048     Parts
0049     WidgetsAddons
0050     WindowSystem
0051 )
0052 
0053 if(NOT APPLE)
0054     option(WITHOUT_X11 "Build without X11 integration (skips finding X11)" OFF)
0055     if(NOT WITHOUT_X11)
0056         find_package(X11)
0057         set(HAVE_X11 ${X11_FOUND})
0058         if(X11_FOUND)
0059             if (QT_MAJOR_VERSION EQUAL "5")
0060                 find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED X11Extras)
0061             else()
0062                 find_package(Qt6 ${REQUIRED_QT_VERSION} CONFIG REQUIRED Gui)
0063             endif()
0064         endif()
0065     endif()
0066 
0067     find_package(KF5Wayland ${KF5_MIN_VERSION} CONFIG)
0068     set(HAVE_KWAYLAND ${KF5Wayland_FOUND})
0069 endif()
0070 
0071 add_subdirectory(app)
0072 add_subdirectory(data)
0073 
0074 ki18n_install(po)
0075 
0076 # add clang-format target for all our real source files
0077 file(GLOB_RECURSE ALL_CLANG_FORMAT_SOURCE_FILES *.cpp *.h)
0078 kde_clang_format(${ALL_CLANG_FORMAT_SOURCE_FILES})
0079 kde_configure_git_pre_commit_hook(CHECKS CLANG_FORMAT)
0080 
0081 
0082 feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)