CMakeLists.txt 1.43 KB
Newer Older
1

2
include_directories( 
Laurent Montel's avatar
Laurent Montel committed
3
                    ${CMAKE_SOURCE_DIR}/pimsettingexporter/core/ 
4
5
6
)


7
8
9
10
11
12
13
14
15
set(pimsettingexporter_widget_SRCS
  widgets/selectiontypetreewidget.cpp
  widgets/logwidget.cpp
)

set(pimsettingexporter_dialog_SRCS
  dialog/selectiontypedialog.cpp
  dialog/backupfilestructureinfodialog.cpp
  dialog/showarchivestructuredialog.cpp
16
  dialog/synchronizeresourcedialog.cpp
17
18
19
)


20
set(pimsettingexporter_SRCS
21
22
    ${pimsettingexporter_widget_SRCS}
    ${pimsettingexporter_dialog_SRCS}
23
24
25
    pimsettingsbackuprestoreui.cpp
    importexportprogressindicatorgui.cpp
    pimsettingexporterwindow.cpp
26
    pimsettingcommandlineoption.cpp
Laurent Montel's avatar
Laurent Montel committed
27
    fullsynchronizeresourcesjob.cpp
28
    main.cpp)
29

30
qt5_add_resources(pimsettingexporter_SRCS pimsettingexporter.qrc)
31

Laurent Montel's avatar
Laurent Montel committed
32
33
ecm_qt_declare_logging_category(pimsettingexporter_SRCS HEADER pimsettingexportgui_debug.h IDENTIFIER PIMSETTINGEXPORTERGUI_LOG CATEGORY_NAME log_pimsettingexportergui)

34
add_executable(pimsettingexporter ${pimsettingexporter_SRCS})
35
36

target_link_libraries(pimsettingexporter
Laurent Montel's avatar
Minor    
Laurent Montel committed
37
 PRIVATE
Laurent Montel's avatar
Laurent Montel committed
38
  KF5::XmlGui
39
  KF5::DBusAddons
Laurent Montel's avatar
Laurent Montel committed
40
  KF5::MailCommon
Laurent Montel's avatar
Laurent Montel committed
41
  KF5::PimCommon
Laurent Montel's avatar
Laurent Montel committed
42
  KF5::Libkdepim
43
  pimsettingexporterprivate
Laurent Montel's avatar
Laurent Montel committed
44
  KF5::Archive
Laurent Montel's avatar
Laurent Montel committed
45
  KF5::ItemViews
46
47
)

Laurent Montel's avatar
Laurent Montel committed
48
49
add_subdirectory(kconf_update)

50
install(TARGETS pimsettingexporter ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} )
51

52
53
install(PROGRAMS org.kde.pimsettingexporter.desktop DESTINATION ${KDE_INSTALL_APPDIR})

Laurent Montel's avatar
Laurent Montel committed
54
55
if(BUILD_TESTING)
    add_subdirectory(tests)
Laurent Montel's avatar
Laurent Montel committed
56
    add_subdirectory(autotests)
Laurent Montel's avatar
Laurent Montel committed
57
endif()
58