Warning, /system/kup/kcm/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 # SPDX-FileCopyrightText: 2020 Simon Persson <simon.persson@mykolab.com> 0002 # 0003 # SPDX-License-Identifier: GPL-2.0-or-later 0004 0005 include_directories("../settings") 0006 include_directories("../daemon") 0007 0008 set(kcm_kup_SRCS 0009 backupplanwidget.cpp 0010 dirselector.cpp 0011 driveselection.cpp 0012 driveselectiondelegate.cpp 0013 folderselectionmodel.cpp 0014 kupkcm.cpp 0015 planstatuswidget.cpp 0016 kbuttongroup.cpp 0017 ../settings/backupplan.cpp 0018 ../settings/kupsettings.cpp 0019 ../settings/kuputils.cpp 0020 ) 0021 0022 kcoreaddons_add_plugin(kcm_kup SOURCES ${kcm_kup_SRCS} INSTALL_NAMESPACE "plasma/kcms/systemsettings_qwidgets") 0023 0024 #this is a library so it needs to enforce it's translation domain, not use the application's domain. 0025 add_definitions(-DTRANSLATION_DOMAIN="kup") 0026 0027 target_link_libraries(kcm_kup 0028 Qt::Core 0029 Qt::DBus 0030 Qt::Gui 0031 KF${QT_MAJOR_VERSION}::CoreAddons 0032 KF${QT_MAJOR_VERSION}::ConfigCore 0033 KF${QT_MAJOR_VERSION}::KIOCore 0034 KF${QT_MAJOR_VERSION}::KIOFileWidgets 0035 KF${QT_MAJOR_VERSION}::Solid 0036 KF${QT_MAJOR_VERSION}::I18n 0037 KF${QT_MAJOR_VERSION}::WidgetsAddons 0038 KF${QT_MAJOR_VERSION}::ConfigWidgets 0039 ) 0040 0041 if(QT_MAJOR_VERSION STREQUAL "6") 0042 target_link_libraries(kcm_kup KF${QT_MAJOR_VERSION}::KCMUtils) 0043 endif() 0044 0045 kcmutils_generate_desktop_file(kcm_kup)