Warning, /plasma/kmenuedit/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 project(kmenuedit) 0002 set(PROJECT_VERSION "6.0.80") 0003 0004 cmake_minimum_required(VERSION 3.16) 0005 0006 set(QT_MIN_VERSION "6.6.0") 0007 set(KF6_MIN_VERSION "5.240.0") 0008 set(KDE_COMPILERSETTINGS_LEVEL "5.82") 0009 0010 set(CMAKE_CXX_STANDARD 20) 0011 set(CMAKE_CXX_STANDARD_REQUIRED ON) 0012 0013 find_package(ECM ${KF6_MIN_VERSION} REQUIRED NO_MODULE) 0014 set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ) 0015 0016 include(FeatureSummary) 0017 include(ECMAddAppIcon) 0018 include(KDEInstallDirs) 0019 include(KDECMakeSettings) 0020 include(KDECompilerSettings NO_POLICY_SCOPE) 0021 include(ECMInstallIcons) 0022 include(ECMQtDeclareLoggingCategory) 0023 include(KDEClangFormat) 0024 include(KDEGitCommitHooks) 0025 include(ECMDeprecationSettings) 0026 0027 find_package(Qt6 ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS 0028 Core 0029 DBus 0030 Xml 0031 ) 0032 0033 find_package(KF6 ${KF6_MIN_VERSION} REQUIRED COMPONENTS 0034 I18n 0035 XmlGui 0036 DBusAddons 0037 IconThemes 0038 KIO 0039 ItemViews 0040 Sonnet 0041 DocTools 0042 GlobalAccel 0043 WindowSystem 0044 ) 0045 0046 ecm_set_disabled_deprecation_versions(QT 6.4 0047 KF 5.240.0 0048 ) 0049 0050 #add_definitions(-DQT_NO_CAST_FROM_ASCII -DQT_STRICT_ITERATORS -DQT_NO_CAST_FROM_BYTEARRAY) 0051 0052 add_definitions(-DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_FROM_BYTEARRAY) 0053 add_definitions(-DTRANSLATION_DOMAIN=\"kmenuedit\") 0054 add_subdirectory( pixmaps ) 0055 add_subdirectory( doc ) 0056 0057 set(kmenueditcommon_STAT_SRCS basictab.cpp 0058 kmenuedit.qrc 0059 basictab.h 0060 configurationmanager.cpp 0061 configurationmanager.h 0062 globalaccel.cpp 0063 globalaccel.h 0064 klinespellchecking.cpp 0065 klinespellchecking.h 0066 kmenuedit.cpp 0067 kmenuedit.h 0068 main.cpp 0069 menufile.cpp 0070 menufile.h 0071 menuinfo.cpp 0072 menuinfo.h 0073 preferencesdlg.cpp 0074 preferencesdlg.h 0075 treeview.cpp 0076 treeview.h) 0077 ########### next target ############### 0078 qt_add_dbus_adaptor( kmenueditcommon_STAT_SRCS org.kde.kmenuedit.xml kmenuedit.h KMenuEdit) 0079 0080 ecm_qt_declare_logging_category(kmenueditcommon_STAT_SRCS HEADER kmenuedit_debug.h IDENTIFIER KMENUEDIT_LOG CATEGORY_NAME org.kde.kmenuedit DESCRIPTION "kmenuedit" EXPORT KMENUEDIT) 0081 0082 set(kmenuedit_KDEINIT_SRCS main.cpp ${kmenueditcommon_STAT_SRCS}) 0083 0084 add_executable( kmenuedit ${kmenuedit_KDEINIT_SRCS}) 0085 target_compile_definitions(kmenuedit PRIVATE -DPROJECT_VERSION="${PROJECT_VERSION}") 0086 0087 target_link_libraries(kmenuedit 0088 Qt::DBus 0089 Qt::Xml 0090 KF6::DBusAddons 0091 KF6::GlobalAccel 0092 KF6::I18n 0093 KF6::IconThemes 0094 KF6::KIOCore 0095 KF6::KIOWidgets 0096 KF6::ItemViews 0097 KF6::SonnetCore 0098 KF6::SonnetUi 0099 KF6::XmlGui 0100 KF6::WindowSystem 0101 KF6::IconWidgets 0102 ) 0103 0104 # add clang-format target for all our real source files 0105 file(GLOB_RECURSE ALL_CLANG_FORMAT_SOURCE_FILES *.cpp *.h) 0106 kde_clang_format(${ALL_CLANG_FORMAT_SOURCE_FILES}) 0107 kde_configure_git_pre_commit_hook(CHECKS CLANG_FORMAT) 0108 install(TARGETS kmenuedit ${KDE_INSTALL_TARGETS_DEFAULT_ARGS}) 0109 0110 ########### install files ############### 0111 0112 install( PROGRAMS org.kde.kmenuedit.desktop DESTINATION ${KDE_INSTALL_APPDIR} ) 0113 install( FILES org.kde.kmenuedit.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR} ) 0114 0115 ecm_install_icons( ICONS 16-apps-kmenuedit.png 22-apps-kmenuedit.png 32-apps-kmenuedit.png 48-apps-kmenuedit.png DESTINATION ${KDE_INSTALL_ICONDIR} THEME hicolor ) 0116 feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES) 0117 0118 ecm_qt_install_logging_categories( 0119 EXPORT KMENUEDIT 0120 FILE kmenuedit.categories 0121 DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR} 0122 ) 0123 0124 ki18n_install(po) 0125 kdoctools_install(po)