Warning, /plasma-mobile/qmlkonsole/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 # SPDX-FileCopyrightText: 2022 Nicolas Fella <nicolas.fella@gmx.de> 0002 # SPDX-License-Identifier: GPL-2.0-or-later 0003 0004 cmake_minimum_required(VERSION 3.16) 0005 0006 set(RELEASE_SERVICE_VERSION_MAJOR "24") 0007 set(RELEASE_SERVICE_VERSION_MINOR "01") 0008 set(RELEASE_SERVICE_VERSION_MICRO "95") 0009 set(RELEASE_SERVICE_VERSION "${RELEASE_SERVICE_VERSION_MAJOR}.${RELEASE_SERVICE_VERSION_MINOR}.${RELEASE_SERVICE_VERSION_MICRO}") 0010 0011 project(qmlkonsole VERSION ${RELEASE_SERVICE_VERSION}) 0012 0013 set(KF6_MIN_VERSION "5.240.0") 0014 set(QT_MIN_VERSION "6.5.2") 0015 set(KDE_COMPILERSETTINGS_LEVEL "5.84.0") 0016 0017 set(CMAKE_CXX_STANDARD 20) 0018 set(CMAKE_CXX_STANDARD_REQUIRED ON) 0019 0020 find_package(ECM ${KF6_MIN_VERSION} REQUIRED NO_MODULE) 0021 set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH}) 0022 0023 include(ECMSetupVersion) 0024 include(ECMGenerateHeaders) 0025 include(KDEInstallDirs) 0026 include(KDECMakeSettings) 0027 include(ECMPoQmTools) 0028 include(KDECompilerSettings NO_POLICY_SCOPE) 0029 include(KDEClangFormat) 0030 include(ECMFindQmlModule) 0031 include(KDEGitCommitHooks) 0032 0033 ecm_setup_version(${RELEASE_SERVICE_VERSION} 0034 VARIABLE_PREFIX QMLKONSOLE 0035 VERSION_HEADER ${CMAKE_CURRENT_BINARY_DIR}/version.h 0036 ) 0037 0038 find_package(Qt6 ${QT_MIN_VERSION} REQUIRED NO_MODULE COMPONENTS 0039 Core 0040 Quick 0041 Test 0042 Gui 0043 Svg 0044 QuickControls2 0045 Widgets 0046 Core5Compat 0047 ) 0048 find_package(KF6 ${KF6_MIN_VERSION} REQUIRED COMPONENTS 0049 Kirigami 0050 I18n 0051 Config 0052 CoreAddons 0053 WindowSystem 0054 Pty 0055 ) 0056 find_package(KF6KirigamiAddons 0.6 REQUIRED) 0057 0058 add_subdirectory(lib) 0059 add_subdirectory(src) 0060 0061 ki18n_install(po) 0062 0063 install(PROGRAMS org.kde.qmlkonsole.desktop DESTINATION ${KDE_INSTALL_APPDIR}) 0064 install(FILES org.kde.qmlkonsole.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR}) 0065 install(FILES org.kde.qmlkonsole.svg DESTINATION ${KDE_INSTALL_FULL_ICONDIR}/hicolor/scalable/apps) 0066 0067 feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES) 0068 0069 file(GLOB_RECURSE ALL_CLANG_FORMAT_SOURCE_FILES src/*.cpp src/*.h lib/*.cpp lib/*.h) 0070 kde_clang_format(${ALL_CLANG_FORMAT_SOURCE_FILES}) 0071 0072 kde_configure_git_pre_commit_hook(CHECKS CLANG_FORMAT)