Warning, /plasma/kmenuedit/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 project(kmenuedit) 0002 set(PROJECT_VERSION "5.27.10") 0003 0004 cmake_minimum_required(VERSION 3.16) 0005 0006 set(QT_MIN_VERSION "5.15.2") 0007 set(KF5_MIN_VERSION "5.102.0") 0008 set(KDE_COMPILERSETTINGS_LEVEL "5.82") 0009 0010 set(CMAKE_CXX_STANDARD 17) 0011 set(CMAKE_CXX_STANDARD_REQUIRED ON) 0012 0013 find_package(ECM ${KF5_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 0026 find_package(Qt${QT_MAJOR_VERSION} ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS 0027 Core 0028 DBus 0029 Xml 0030 ) 0031 0032 find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS 0033 I18n 0034 XmlGui 0035 DBusAddons 0036 IconThemes 0037 KIO 0038 ItemViews 0039 Sonnet 0040 DocTools 0041 GlobalAccel 0042 WindowSystem 0043 ) 0044 0045 add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x050f00) 0046 add_definitions(-DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x054200) 0047 0048 #add_definitions(-DQT_NO_CAST_FROM_ASCII -DQT_STRICT_ITERATORS -DQT_NO_CAST_FROM_BYTEARRAY) 0049 0050 add_definitions(-DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_FROM_BYTEARRAY) 0051 0052 add_subdirectory( pixmaps ) 0053 add_subdirectory( doc ) 0054 add_subdirectory(kconf_update) 0055 0056 set(kmenueditcommon_STAT_SRCS basictab.cpp 0057 basictab.h 0058 configurationmanager.cpp 0059 configurationmanager.h 0060 globalaccel.cpp 0061 globalaccel.h 0062 klinespellchecking.cpp 0063 klinespellchecking.h 0064 kmenuedit.cpp 0065 kmenuedit.h 0066 main.cpp 0067 menufile.cpp 0068 menufile.h 0069 menuinfo.cpp 0070 menuinfo.h 0071 preferencesdlg.cpp 0072 preferencesdlg.h 0073 treeview.cpp 0074 treeview.h) 0075 ########### next target ############### 0076 qt_add_dbus_adaptor( kmenueditcommon_STAT_SRCS org.kde.kmenuedit.xml kmenuedit.h KMenuEdit) 0077 0078 ecm_qt_declare_logging_category(kmenueditcommon_STAT_SRCS HEADER kmenuedit_debug.h IDENTIFIER KMENUEDIT_LOG CATEGORY_NAME org.kde.kmenuedit DESCRIPTION "kmenuedit" EXPORT KMENUEDIT) 0079 0080 set(kmenuedit_KDEINIT_SRCS main.cpp ${kmenueditcommon_STAT_SRCS}) 0081 0082 add_executable( kmenuedit ${kmenuedit_KDEINIT_SRCS}) 0083 target_compile_definitions(kmenuedit PRIVATE -DPROJECT_VERSION="${PROJECT_VERSION}") 0084 0085 target_link_libraries(kmenuedit 0086 Qt::DBus 0087 Qt::Xml 0088 KF5::DBusAddons 0089 KF5::GlobalAccel 0090 KF5::I18n 0091 KF5::IconThemes 0092 KF5::KIOCore 0093 KF5::KIOWidgets 0094 KF5::ItemViews 0095 KF5::SonnetCore 0096 KF5::SonnetUi 0097 KF5::XmlGui 0098 KF5::WindowSystem 0099 ) 0100 0101 # add clang-format target for all our real source files 0102 file(GLOB_RECURSE ALL_CLANG_FORMAT_SOURCE_FILES *.cpp *.h) 0103 kde_clang_format(${ALL_CLANG_FORMAT_SOURCE_FILES}) 0104 kde_configure_git_pre_commit_hook(CHECKS CLANG_FORMAT) 0105 install(TARGETS kmenuedit ${KDE_INSTALL_TARGETS_DEFAULT_ARGS}) 0106 0107 ########### install files ############### 0108 0109 install( PROGRAMS org.kde.kmenuedit.desktop DESTINATION ${KDE_INSTALL_APPDIR} ) 0110 install( FILES org.kde.kmenuedit.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR} ) 0111 install( FILES kmenueditui.rc DESTINATION ${KDE_INSTALL_KXMLGUIDIR}/kmenuedit ) 0112 0113 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 ) 0114 feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES) 0115 0116 ecm_qt_install_logging_categories( 0117 EXPORT KMENUEDIT 0118 FILE kmenuedit.categories 0119 DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR} 0120 ) 0121 0122 ki18n_install(po) 0123 kdoctools_install(po)