From 1ab6ccdafcc28f9b9939280e80591f1477b1d3bb Mon Sep 17 00:00:00 2001 From: Daniel Brunner <0xFEEDC0DE64@gmail.com> Date: Sun, 7 Oct 2018 22:14:34 +0200 Subject: [PATCH] Added CMakeLists.txt --- CMakeLists.txt | 4 +++ plugins/CMakeLists.txt | 13 ++++++++ plugins/absenceplugin | 2 +- plugins/advancedviewplugin | 2 +- plugins/devtoolsplugin | 2 +- plugins/lunchmealplugin | 2 +- plugins/presenceplugin | 2 +- plugins/profileplugin | 2 +- plugins/reportsplugin | 2 +- plugins/sketchplugin | 2 +- plugins/updaterplugin | 2 +- plugins/weatherplugin | 2 +- plugins/webradioplugin | 2 +- zeiterfassung/CMakeLists.txt | 16 +++++++++ zeiterfassungcorelib/CMakeLists.txt | 52 +++++++++++++++++++++++++++++ zeiterfassungguilib/CMakeLists.txt | 39 ++++++++++++++++++++++ 16 files changed, 135 insertions(+), 11 deletions(-) create mode 100644 CMakeLists.txt create mode 100644 plugins/CMakeLists.txt create mode 100644 zeiterfassung/CMakeLists.txt create mode 100644 zeiterfassungcorelib/CMakeLists.txt create mode 100644 zeiterfassungguilib/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..d33a15a --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,4 @@ +add_subdirectory(plugins) +add_subdirectory(zeiterfassung) +add_subdirectory(zeiterfassungcorelib) +add_subdirectory(zeiterfassungguilib) diff --git a/plugins/CMakeLists.txt b/plugins/CMakeLists.txt new file mode 100644 index 0000000..5629b47 --- /dev/null +++ b/plugins/CMakeLists.txt @@ -0,0 +1,13 @@ +set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin/plugins/zeiterfassung) + +add_subdirectory(absenceplugin) +add_subdirectory(advancedviewplugin) +add_subdirectory(devtoolsplugin) +add_subdirectory(lunchmealplugin) +add_subdirectory(profileplugin) +add_subdirectory(presenceplugin) +add_subdirectory(reportsplugin) +add_subdirectory(sketchplugin) +add_subdirectory(updaterplugin) +add_subdirectory(weatherplugin) +add_subdirectory(webradioplugin) diff --git a/plugins/absenceplugin b/plugins/absenceplugin index af02fa7..65a00cd 160000 --- a/plugins/absenceplugin +++ b/plugins/absenceplugin @@ -1 +1 @@ -Subproject commit af02fa79fda2251b9a9ee410c2493345ddf242a2 +Subproject commit 65a00cd3c75f09ede7c432d7397d5dec6f6681bc diff --git a/plugins/advancedviewplugin b/plugins/advancedviewplugin index 8f0f199..cf78369 160000 --- a/plugins/advancedviewplugin +++ b/plugins/advancedviewplugin @@ -1 +1 @@ -Subproject commit 8f0f19922cd21a81e3d9aa53537817b1d85c0784 +Subproject commit cf78369e79cd7f26e6f3865d3c1940ef1e629ba1 diff --git a/plugins/devtoolsplugin b/plugins/devtoolsplugin index 04b8ade..f0808ef 160000 --- a/plugins/devtoolsplugin +++ b/plugins/devtoolsplugin @@ -1 +1 @@ -Subproject commit 04b8ade09e1a77e3d0eb71c827a1b54d9ba4d61a +Subproject commit f0808efd4b675d9912b028b1ffdc279e213ee157 diff --git a/plugins/lunchmealplugin b/plugins/lunchmealplugin index 6c48560..faf5d83 160000 --- a/plugins/lunchmealplugin +++ b/plugins/lunchmealplugin @@ -1 +1 @@ -Subproject commit 6c4856072478956173b429671f90ef13c72f5ad3 +Subproject commit faf5d83ec867528fb166c23e0deb1452d5c663b1 diff --git a/plugins/presenceplugin b/plugins/presenceplugin index cb64211..89e292b 160000 --- a/plugins/presenceplugin +++ b/plugins/presenceplugin @@ -1 +1 @@ -Subproject commit cb64211fcd50ef6692a228198811ddbd368ff194 +Subproject commit 89e292b4080430532088eade56af1e6b4ccdc4e2 diff --git a/plugins/profileplugin b/plugins/profileplugin index c1f1b88..66563d6 160000 --- a/plugins/profileplugin +++ b/plugins/profileplugin @@ -1 +1 @@ -Subproject commit c1f1b884ff743b64a0b18b3b4d8eb3339190524d +Subproject commit 66563d661a4a27042706fa1f7af63d3f89c311d2 diff --git a/plugins/reportsplugin b/plugins/reportsplugin index b24ac9e..9e9b9e2 160000 --- a/plugins/reportsplugin +++ b/plugins/reportsplugin @@ -1 +1 @@ -Subproject commit b24ac9e00a7fe26acdfbfda1e1d19e12099eaae6 +Subproject commit 9e9b9e21a898be9bc472dd07120cea92f54c1ec6 diff --git a/plugins/sketchplugin b/plugins/sketchplugin index 30fad70..a37377a 160000 --- a/plugins/sketchplugin +++ b/plugins/sketchplugin @@ -1 +1 @@ -Subproject commit 30fad70d72ded1bc5573bed5a4df17647558fb13 +Subproject commit a37377a930414ff8d75d5d490f538cdbc1281b53 diff --git a/plugins/updaterplugin b/plugins/updaterplugin index 26da75b..74c8ecb 160000 --- a/plugins/updaterplugin +++ b/plugins/updaterplugin @@ -1 +1 @@ -Subproject commit 26da75bf63e3405f87a1887b0ece4553dc295bf4 +Subproject commit 74c8ecb9aab516c2c9ebf38d606d355417adc848 diff --git a/plugins/weatherplugin b/plugins/weatherplugin index 1b5a756..137fa9b 160000 --- a/plugins/weatherplugin +++ b/plugins/weatherplugin @@ -1 +1 @@ -Subproject commit 1b5a7563f685dcb5d61f3521a0fb934fdf3747e4 +Subproject commit 137fa9bb2b968069d33b134bbbb02220a41ba14d diff --git a/plugins/webradioplugin b/plugins/webradioplugin index 967b138..7b59a5f 160000 --- a/plugins/webradioplugin +++ b/plugins/webradioplugin @@ -1 +1 @@ -Subproject commit 967b13871c31d967f85fdcdc52be34226919a36d +Subproject commit 7b59a5f77ec1cb4ffb09758dc80a2b43413b58e2 diff --git a/zeiterfassung/CMakeLists.txt b/zeiterfassung/CMakeLists.txt new file mode 100644 index 0000000..5cba606 --- /dev/null +++ b/zeiterfassung/CMakeLists.txt @@ -0,0 +1,16 @@ +set(HEADERS +) + +set(SOURCES + main.cpp +) + +set(FORMS + strips/bookingendstrip.ui + strips/bookingstartstrip.ui + strips/timeassignmentstrip.ui +) + +add_executable(zeiterfassung ${HEADERS} ${SOURCES} ${FORMS}) + +target_link_libraries(zeiterfassung Qt5::Core Qt5::Gui Qt5::Widgets Qt5::Network zeiterfassungcorelib zeiterfassungguilib) diff --git a/zeiterfassungcorelib/CMakeLists.txt b/zeiterfassungcorelib/CMakeLists.txt new file mode 100644 index 0000000..a4fee7c --- /dev/null +++ b/zeiterfassungcorelib/CMakeLists.txt @@ -0,0 +1,52 @@ +set(HEADERS + zeiterfassungapi.h + zeiterfassungcorelib_global.h + zeiterfassungsettings.h + replies/createbookingreply.h + replies/createtimeassignmentreply.h + replies/deletebookingreply.h + replies/deletetimeassignmentreply.h + replies/getabsencesreply.h + replies/getbookingsreply.h + replies/getdayinforeply.h + replies/getpresencestatusreply.h + replies/getprojectsreply.h + replies/getreportreply.h + replies/gettimeassignmentsreply.h + replies/getuserinforeply.h + replies/loginpagereply.h + replies/loginreply.h + replies/updatebookingreply.h + replies/updatetimeassignmentreply.h + replies/zeiterfassungreply.h +) + +set(SOURCES + zeiterfassungapi.cpp + zeiterfassungsettings.cpp + replies/createbookingreply.cpp + replies/createtimeassignmentreply.cpp + replies/deletebookingreply.cpp + replies/deletetimeassignmentreply.cpp + replies/getabsencesreply.cpp + replies/getbookingsreply.cpp + replies/getdayinforeply.cpp + replies/getpresencestatusreply.cpp + replies/getprojectsreply.cpp + replies/getreportreply.cpp + replies/gettimeassignmentsreply.cpp + replies/getuserinforeply.cpp + replies/loginpagereply.cpp + replies/loginreply.cpp + replies/updatebookingreply.cpp + replies/updatetimeassignmentreply.cpp + replies/zeiterfassungreply.cpp +) + +add_library(zeiterfassungcorelib SHARED ${HEADERS} ${SOURCES}) + +target_compile_definitions(zeiterfassungcorelib PRIVATE ZEITERFASSUNGCORELIB_LIBRARY) + +target_link_libraries(zeiterfassungcorelib Qt5::Core Qt5::Network dbcorelib) + +target_include_directories(zeiterfassungcorelib PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}) diff --git a/zeiterfassungguilib/CMakeLists.txt b/zeiterfassungguilib/CMakeLists.txt new file mode 100644 index 0000000..d03bd0e --- /dev/null +++ b/zeiterfassungguilib/CMakeLists.txt @@ -0,0 +1,39 @@ +set(HEADERS + mainwindow.h + settingswidget.h + stripfactory.h + stripswidget.h + zeiterfassungdialog.h + zeiterfassungguilib_global.h + zeiterfassungplugin.h + dialogs/authenticationdialog.h + dialogs/languageselectiondialog.h + dialogs/settingsdialog.h +) + +set(SOURCES + mainwindow.cpp + settingswidget.cpp + stripfactory.cpp + stripswidget.cpp + zeiterfassungdialog.cpp + zeiterfassungplugin.cpp + dialogs/authenticationdialog.cpp + dialogs/languageselectiondialog.cpp + dialogs/settingsdialog.cpp +) + +set(FORMS + mainwindow.ui + dialogs/authenticationdialog.ui + dialogs/languageselectiondialog.ui + dialogs/settingsdialog.ui +) + +add_library(zeiterfassungguilib SHARED ${HEADERS} ${SOURCES} ${FORMS}) + +target_compile_definitions(zeiterfassungguilib PRIVATE ZEITERFASSUNGGUILIB_LIBRARY) + +target_link_libraries(zeiterfassungguilib Qt5::Core Qt5::Gui Qt5::Widgets Qt5::UiTools zeiterfassungcorelib) + +target_include_directories(zeiterfassungguilib PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})