Warning, /pim/pim-data-exporter/gui/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 # SPDX-FileCopyrightText: 2011-2024 Laurent Montel <montel@kde.org>
0002 # SPDX-License-Identifier: BSD-3-Clause
0003 
0004 add_executable(pimdataexporter)
0005 
0006 if (TARGET KF6::UserFeedbackWidgets)
0007     add_definitions(-DWITH_KUSERFEEDBACK)
0008 endif()
0009 
0010 set(pimdataexporter_userfeedback_SRCS)
0011 if (TARGET KF6::UserFeedbackWidgets)
0012     target_sources(pimdataexporter PRIVATE
0013         userfeedback/userfeedbackmanager.cpp
0014         userfeedback/pimdataexporteduserfeedbackprovider.cpp
0015         userfeedback/userfeedbackmanager.h
0016         userfeedback/pimdataexporteduserfeedbackprovider.h
0017 
0018         )
0019 endif()
0020 
0021 include_directories( 
0022     ${pim-data-exporter_SOURCE_DIR}/core/
0023     )
0024 
0025 
0026 kconfig_add_kcfg_files(pimdataexporter settings/pimdataexporterglobalconfig.kcfgc)
0027 
0028 
0029 target_sources(pimdataexporter PRIVATE
0030     widgets/selectiontypetreewidget.cpp
0031     widgets/logwidget.cpp
0032     widgets/pimdataexporterconfigurewidget.cpp
0033 
0034     dialog/selectiontypedialog.cpp
0035     dialog/backupfilestructureinfodialog.cpp
0036     dialog/showarchivestructuredialog.cpp
0037     dialog/synchronizeresourcedialog.cpp
0038     dialog/pimdataexporterconfiguredialog.cpp
0039 
0040     job/fullsynchronizeresourcesjob.cpp
0041 
0042     trayicon/pimdatatrayicon.cpp
0043 
0044     pimdatabackuprestoreui.cpp
0045     importexportprogressindicatorgui.cpp
0046     pimdataexporterwindow.cpp
0047     pimdatacommandlineoption.cpp
0048     main.cpp
0049     pimdataexporter.qrc
0050     pimdatacommandlineoption.h
0051     job/fullsynchronizeresourcesjob.h
0052     trayicon/pimdatatrayicon.h
0053     dialog/backupfilestructureinfodialog.h
0054     dialog/pimdataexporterconfiguredialog.h
0055     dialog/selectiontypedialog.h
0056     dialog/showarchivestructuredialog.h
0057     dialog/synchronizeresourcedialog.h
0058     pimdataexporterwindow.h
0059     widgets/selectiontypetreewidget.h
0060     widgets/pimdataexporterconfigurewidget.h
0061     widgets/logwidget.h
0062     pimdatabackuprestoreui.h
0063     importexportprogressindicatorgui.h
0064     )
0065 
0066 #TODO create lib
0067 
0068 ecm_qt_declare_logging_category(pimdataexporter HEADER pimdataexportgui_debug.h IDENTIFIER PIMDATAEXPORTERGUI_LOG CATEGORY_NAME org.kde.pim.pimdataexportergui)
0069 if (COMPILE_WITH_UNITY_CMAKE_SUPPORT)
0070     set_target_properties(pimdataexporter PROPERTIES UNITY_BUILD ON)
0071 endif()
0072 
0073 if (TARGET KF6::UserFeedbackWidgets)
0074         target_link_libraries(pimdataexporter PRIVATE KF6::UserFeedbackWidgets)
0075 endif()
0076 
0077 target_link_libraries(pimdataexporter
0078     PRIVATE
0079     KF6::XmlGui
0080     KF6::DBusAddons
0081     KPim6::MailCommon
0082     KPim6::PimCommon
0083     pimdataexporterprivate
0084     KF6::Archive
0085     KF6::ItemViews
0086     KF6::KIOFileWidgets
0087     KF6::Notifications
0088     KF6::I18n
0089     KF6::Crash
0090     KF6::StatusNotifierItem
0091     ${pimdataexporter_userfeedback_LIB}
0092     KF6::WidgetsAddons
0093     KF6::TextCustomEditor
0094     )
0095 
0096 
0097 install(TARGETS pimdataexporter ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} )
0098 
0099 install(PROGRAMS org.kde.pimdataexporter.desktop DESTINATION ${KDE_INSTALL_APPDIR})
0100 
0101 install(FILES settings/pimdataexporterglobalconfig.kcfg DESTINATION ${KDE_INSTALL_KCFGDIR})
0102 
0103 if(BUILD_TESTING)
0104     add_subdirectory(tests)
0105     add_subdirectory(autotests)
0106 endif()
0107