Warning, /plasma/plasma-desktop/kcms/dateandtime/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 # KI18N Translation Domain for this library 0002 add_definitions(-DTRANSLATION_DOMAIN=\"kcmkclock\") 0003 ########### next target ############### 0004 0005 set(kcm_clock_PART_SRCS dtime.cpp main.cpp ) 0006 0007 ki18n_wrap_ui(kcm_clock_PART_SRCS dateandtime.ui) 0008 0009 qt_add_dbus_interface(kcm_clock_PART_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/timedated1.xml timedated_interface) 0010 0011 if (QT_MAJOR_VERSION EQUAL "5" OR NOT PROJECT_VERSION_MAJOR EQUAL "5") 0012 add_library(kcm_clock MODULE ${kcm_clock_PART_SRCS}) 0013 kcmutils_generate_desktop_file(kcm_clock) 0014 0015 target_link_libraries(kcm_clock 0016 Qt::DBus 0017 KF5::ItemViews 0018 KF5::AuthCore 0019 KF5::KCMUtils 0020 KF5::I18n 0021 KF5::KIOCore 0022 KF5::KIOWidgets 0023 KF5::Plasma 0024 KF5::KDELibs4Support 0025 ) 0026 0027 install(TARGETS kcm_clock DESTINATION ${KDE_INSTALL_PLUGINDIR}/plasma/kcms/systemsettings_qwidgets ) 0028 else() 0029 message(WARNING "TODO: kcm_clock not ported away from KDELibs4Support yet!") 0030 endif() 0031 0032 ########### next target ############### 0033 #This is only needed when not using timedated and can be removed in future 0034 0035 add_executable(kcmdatetimehelper helper.cpp ${helper_mocs}) 0036 target_link_libraries(kcmdatetimehelper KF5::AuthCore KF5::ConfigCore) 0037 0038 install(TARGETS kcmdatetimehelper DESTINATION ${KAUTH_HELPER_INSTALL_DIR}) 0039 kauth_install_helper_files(kcmdatetimehelper org.kde.kcontrol.kcmclock root) 0040 0041 kauth_install_actions(org.kde.kcontrol.kcmclock kcmclock_actions.actions) 0042