Warning, /utilities/kdf/src/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 add_definitions(-DTRANSLATION_DOMAIN=\"kdf\")
0002 
0003 ########### kdfprivate library ###############
0004 
0005 set(kdfprivate_SRCS
0006     kdfwidget.cpp
0007     kdfconfig.cpp
0008     kdfitemdelegate.cpp
0009     kdfsortproxymodel.cpp
0010     mntconfig.cpp
0011     disklist.cpp
0012     disks.cpp
0013     optiondialog.cpp
0014     stdoption.cpp
0015     kdfconfig.h
0016     optiondialog.h
0017     kdfwidget.h
0018     mntconfig.h
0019     kdfutil.h
0020     stdoption.h
0021     disks.h
0022     kdfsortproxymodel.h
0023     kdfitemdelegate.h
0024     disklist.h
0025 )
0026 
0027 ecm_qt_declare_logging_category(kdfprivate_SRCS
0028                                 HEADER kdfprivate_debug.h
0029                                 IDENTIFIER KDF
0030                                 CATEGORY_NAME kdf.private
0031                                 DESCRIPTION "kdf (private lib)" EXPORT KDF)
0032 
0033 ki18n_wrap_ui(kdfprivate_SRCS
0034     kdfconfig.ui
0035     mntconfig.ui )
0036 
0037 add_library(kdfprivate ${kdfprivate_SRCS})
0038 generate_export_header(kdfprivate BASE_NAME kdfprivate)
0039 target_link_libraries(kdfprivate PUBLIC
0040     Qt${QT_MAJOR_VERSION}::Core
0041     KF5::Completion
0042     KF5::ConfigWidgets
0043     KF5::I18n
0044     KF5::IconThemes
0045     KF5::KIOCore
0046     KF5::WidgetsAddons
0047 )
0048 
0049 set_target_properties(kdfprivate PROPERTIES
0050     VERSION ${KDFPRIVATE_VERSION}
0051     SOVERSION ${KDFPRIVATE_SOVERSION}
0052 )
0053 
0054 install(TARGETS kdfprivate ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} LIBRARY NAMELINK_SKIP)
0055 
0056 
0057 ########### kdf executable ###############
0058 
0059 set(kdf_SRCS kdf.cpp kdf.h)
0060 
0061 ecm_qt_declare_logging_category(kdf_SRCS
0062                                 HEADER kdf_debug.h
0063                                 IDENTIFIER KDF
0064                                 CATEGORY_NAME kdf.main DESCRIPTION "kdf (main windows)" EXPORT KDF)
0065 
0066 add_executable(kdf ${kdf_SRCS})
0067 
0068 target_link_libraries(kdf
0069     kdfprivate
0070     Qt::Core
0071     KF5::XmlGui
0072 )
0073 
0074 install(TARGETS kdf  ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} )
0075 
0076 
0077 ########### kwikdisk executable ###############
0078 
0079 set(kwikdisk_SRCS kwikdisk.cpp kwikdisk.h)
0080 
0081 ecm_qt_declare_logging_category(kwikdisk_SRCS
0082                                 HEADER kwikdisk_debug.h
0083                                 IDENTIFIER KDF
0084                                 CATEGORY_NAME kdf.kwikdisk DESCRIPTION "kdf(kdf kwikdisk)" EXPORT KDF)
0085 
0086 add_executable(kwikdisk ${kwikdisk_SRCS})
0087 
0088 target_link_libraries(kwikdisk
0089     kdfprivate
0090     Qt${QT_MAJOR_VERSION}::Core
0091     KF5::KIOWidgets
0092     KF5::Notifications
0093 )
0094 
0095 install(TARGETS kwikdisk  ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} )
0096 
0097 
0098 ########### kdf KCM ###############
0099 
0100 set(kcm_kdf_PART_SRCS kcmdf.cpp kcmdf.h)
0101 ecm_qt_declare_logging_category(kcm_kdf_PART_SRCS
0102                                 HEADER kcmdf_debug.h
0103                                 IDENTIFIER KDF
0104                                 CATEGORY_NAME kdf.kcm DESCRIPTION "kdf (kdf kcm)" EXPORT KDF)
0105 
0106 add_library(kcm_kdf ${kcm_kdf_PART_SRCS})
0107 kcoreaddons_desktop_to_json(kcm_kdf "../desktop/kcmdf.desktop" SERVICE_TYPES kcmodule.desktop)
0108 target_link_libraries(kcm_kdf
0109     kdfprivate
0110     Qt${QT_MAJOR_VERSION}::Core
0111 )
0112 
0113 install(TARGETS kcm_kdf  DESTINATION ${KDE_INSTALL_PLUGINDIR})