CMakeLists.txt 1.31 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
16
17
18
set(pimsettingexporter_widget_SRCS
  widgets/selectiontypetreewidget.cpp
  widgets/logwidget.cpp
)

set(pimsettingexporter_dialog_SRCS
  dialog/selectiontypedialog.cpp
  dialog/backupfilestructureinfodialog.cpp
  dialog/showarchivestructuredialog.cpp
)


19
set(pimsettingexporter_SRCS
20
21
    ${pimsettingexporter_widget_SRCS}
    ${pimsettingexporter_dialog_SRCS}
22
23
24
    pimsettingsbackuprestoreui.cpp
    importexportprogressindicatorgui.cpp
    pimsettingexporterwindow.cpp
25
    pimsettingcommandlineoption.cpp
26
    main.cpp)
27
qt5_add_resources(pimsettingexporter_SRCS pimsettingexporter.qrc)
28

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

31
add_executable(pimsettingexporter ${pimsettingexporter_SRCS})
32
33

target_link_libraries(pimsettingexporter
Laurent Montel's avatar
Minor    
Laurent Montel committed
34
 PRIVATE
Laurent Montel's avatar
Laurent Montel committed
35
  KF5::XmlGui
36
  KF5::DBusAddons
Laurent Montel's avatar
Laurent Montel committed
37
  KF5::MailCommon
Laurent Montel's avatar
Laurent Montel committed
38
  KF5::PimCommon
Laurent Montel's avatar
Laurent Montel committed
39
  KF5::Libkdepim
40
  pimsettingexporterprivate
Laurent Montel's avatar
Laurent Montel committed
41
  KF5::Archive
42
43
)

Laurent Montel's avatar
Laurent Montel committed
44
45
add_subdirectory(kconf_update)

46
install(TARGETS pimsettingexporter ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} )
47

48
49
install(PROGRAMS org.kde.pimsettingexporter.desktop DESTINATION ${KDE_INSTALL_APPDIR})

Laurent Montel's avatar
Laurent Montel committed
50
51
52
if(BUILD_TESTING)
    add_subdirectory(tests)
endif()
53