summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2015-05-10 14:05:50 +0200
committerMontel Laurent <[email protected]>2015-05-10 14:05:50 +0200
commit157e647349534788634e3a922e693942034d8fe6 (patch)
treec51340c7936ea251ebda1f6fc51e308a946c6f31
parentd905b9162843ad0edea9980c815c56183d9bf77b (diff)
Move CMakeLists.txt to gui directory
-rw-r--r--pimsettingexporter/CMakeLists.txt41
-rw-r--r--pimsettingexporter/gui/CMakeLists.txt48
-rw-r--r--pimsettingexporter/gui/pimsettingexporter.desktop (renamed from pimsettingexporter/pimsettingexporter.desktop)0
-rw-r--r--pimsettingexporter/gui/pimsettingexporter.rc (renamed from pimsettingexporter/pimsettingexporter.rc)0
4 files changed, 50 insertions, 39 deletions
diff --git a/pimsettingexporter/CMakeLists.txt b/pimsettingexporter/CMakeLists.txt
index 3095e1e..f41ccf8 100644
--- a/pimsettingexporter/CMakeLists.txt
+++ b/pimsettingexporter/CMakeLists.txt
@@ -126,47 +126,10 @@ set_target_properties(pimsettingexporterprivate PROPERTIES VERSION ${GENERIC_LIB
install(TARGETS pimsettingexporterprivate ${INSTALL_TARGETS_DEFAULT_ARGS} LIBRARY NAMELINK_SKIP)
-set(pimsettingexporter_SRCS
- gui/pimsettingsbackuprestoreui.cpp
- gui/importexportprogressindicatorgui.cpp
- gui/pimsettingexporterwindow.cpp
- gui/main.cpp)
-
-kde4_add_executable(pimsettingexporter ${pimsettingexporter_SRCS})
-
-target_link_libraries(pimsettingexporter
- ${KDE4_KFILE_LIBS}
- ${KDE4_KIO_LIBS}
- ${KDEPIMLIBS_AKONADI_LIBS}
- ${KDEPIMLIBS_AKONADI_KMIME_LIBS}
- ${KDEPIMLIBS_KMIME_LIBS}
- ${KDEPIMLIBS_KPIMUTILS_LIBS}
- ${KDEPIMLIBS_MAILTRANSPORT_LIBS}
- ${AKONADI_COMMON_LIBRARIES}
- ${KDEPIMLIBS_KALARMCAL_LIBS}
- ${QT_QTXML_LIBRARY}
- mailimporter
- mailcommon
- pimcommon
- kdepim
- messagecomposer
- pimsettingexporterprivate
-)
-
-
-install(TARGETS pimsettingexporter ${INSTALL_TARGETS_DEFAULT_ARGS} )
-
-install(FILES
- pimsettingexporter.rc
- DESTINATION ${DATA_INSTALL_DIR}/pimsettingexporter
-)
-
-install(FILES backup-structure.txt DESTINATION ${DATA_INSTALL_DIR}/pimsettingexporter)
-
-install(PROGRAMS pimsettingexporter.desktop DESTINATION ${XDG_APPS_INSTALL_DIR})
-
########### install files ###############
+install(FILES backup-structure.txt DESTINATION ${DATA_INSTALL_DIR}/pimsettingexporter)
kde4_install_icons( ${ICON_INSTALL_DIR} )
add_subdirectory(tests)
+add_subdirectory(gui)
diff --git a/pimsettingexporter/gui/CMakeLists.txt b/pimsettingexporter/gui/CMakeLists.txt
new file mode 100644
index 0000000..3a8eb5a
--- /dev/null
+++ b/pimsettingexporter/gui/CMakeLists.txt
@@ -0,0 +1,48 @@
+
+include_directories(${AKONADI_INCLUDE_DIR}
+ ${CMAKE_SOURCE_DIR}/libkdepim
+ ${CMAKE_SOURCE_DIR}/mailcommon
+ ${CMAKE_SOURCE_DIR}/messageviewer
+ ${CMAKE_SOURCE_DIR}/pimcommon
+ ${CMAKE_SOURCE_DIR}/messagecomposer/
+ ${CMAKE_SOURCE_DIR}/pimsettingexporter/
+)
+
+
+set(pimsettingexporter_SRCS
+ pimsettingsbackuprestoreui.cpp
+ importexportprogressindicatorgui.cpp
+ pimsettingexporterwindow.cpp
+ main.cpp)
+
+kde4_add_executable(pimsettingexporter ${pimsettingexporter_SRCS})
+
+target_link_libraries(pimsettingexporter
+ ${KDE4_KFILE_LIBS}
+ ${KDE4_KIO_LIBS}
+ ${KDEPIMLIBS_AKONADI_LIBS}
+ ${KDEPIMLIBS_AKONADI_KMIME_LIBS}
+ ${KDEPIMLIBS_KMIME_LIBS}
+ ${KDEPIMLIBS_KPIMUTILS_LIBS}
+ ${KDEPIMLIBS_MAILTRANSPORT_LIBS}
+ ${AKONADI_COMMON_LIBRARIES}
+ ${KDEPIMLIBS_KALARMCAL_LIBS}
+ ${QT_QTXML_LIBRARY}
+ mailimporter
+ mailcommon
+ pimcommon
+ kdepim
+ messagecomposer
+ pimsettingexporterprivate
+)
+
+
+install(TARGETS pimsettingexporter ${INSTALL_TARGETS_DEFAULT_ARGS} )
+
+install(FILES
+ pimsettingexporter.rc
+ DESTINATION ${DATA_INSTALL_DIR}/pimsettingexporter
+)
+
+install(PROGRAMS pimsettingexporter.desktop DESTINATION ${XDG_APPS_INSTALL_DIR})
+
diff --git a/pimsettingexporter/pimsettingexporter.desktop b/pimsettingexporter/gui/pimsettingexporter.desktop
index 8430244..8430244 100644
--- a/pimsettingexporter/pimsettingexporter.desktop
+++ b/pimsettingexporter/gui/pimsettingexporter.desktop
diff --git a/pimsettingexporter/pimsettingexporter.rc b/pimsettingexporter/gui/pimsettingexporter.rc
index 4a1bc4e..4a1bc4e 100644
--- a/pimsettingexporter/pimsettingexporter.rc
+++ b/pimsettingexporter/gui/pimsettingexporter.rc