From 5b7ff092b499704de620602ddf1391bdd96a6cdf Mon Sep 17 00:00:00 2001 From: Daniel Brunner <0xFEEDC0DE64@gmail.com> Date: Sun, 7 Oct 2018 22:39:02 +0200 Subject: [PATCH] Added CMakeLists.txt --- CMakeLists.txt | 3 +++ plugins/CMakeLists.txt | 7 +++++++ plugins/fileserverplugin | 2 +- plugins/helloworldplugin | 2 +- plugins/proxyplugin | 2 +- plugins/seriesplugin | 2 +- plugins/wifilampplugin | 2 +- webserver/CMakeLists.txt | 10 ++++++++++ webserverlib/CMakeLists.txt | 32 ++++++++++++++++++++++++++++++++ 9 files changed, 57 insertions(+), 5 deletions(-) create mode 100644 CMakeLists.txt create mode 100644 plugins/CMakeLists.txt create mode 100644 webserver/CMakeLists.txt create mode 100644 webserverlib/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..98763f3 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,3 @@ +add_subdirectory(plugins) +add_subdirectory(webserver) +add_subdirectory(webserverlib) diff --git a/plugins/CMakeLists.txt b/plugins/CMakeLists.txt new file mode 100644 index 0000000..185bd1e --- /dev/null +++ b/plugins/CMakeLists.txt @@ -0,0 +1,7 @@ +set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin/plugins/webserver) + +add_subdirectory(fileserverplugin) +add_subdirectory(helloworldplugin) +add_subdirectory(proxyplugin) +add_subdirectory(seriesplugin) +add_subdirectory(wifilampplugin) diff --git a/plugins/fileserverplugin b/plugins/fileserverplugin index 38770b2..996ea3c 160000 --- a/plugins/fileserverplugin +++ b/plugins/fileserverplugin @@ -1 +1 @@ -Subproject commit 38770b214a4caad2df3ec2edb2bef45df1abd1c0 +Subproject commit 996ea3c9eefcd317be7c55434d9241e1488aed6a diff --git a/plugins/helloworldplugin b/plugins/helloworldplugin index 5bd4447..db376d0 160000 --- a/plugins/helloworldplugin +++ b/plugins/helloworldplugin @@ -1 +1 @@ -Subproject commit 5bd4447e2a5837ce146213a9108d11e6854ffd76 +Subproject commit db376d03cb11d63a4000269696b1bfa572d18e44 diff --git a/plugins/proxyplugin b/plugins/proxyplugin index cc11f86..77b377e 160000 --- a/plugins/proxyplugin +++ b/plugins/proxyplugin @@ -1 +1 @@ -Subproject commit cc11f8645be146a7e1d02cfc9126bee6d7a83f60 +Subproject commit 77b377ee0b6d17d8e92755e6006f863b3b663a6e diff --git a/plugins/seriesplugin b/plugins/seriesplugin index 16206f6..f8d6b4e 160000 --- a/plugins/seriesplugin +++ b/plugins/seriesplugin @@ -1 +1 @@ -Subproject commit 16206f68227debc33af41a60ea34d0fda9116445 +Subproject commit f8d6b4e806f95da6bbbcf569921a362db82bdc08 diff --git a/plugins/wifilampplugin b/plugins/wifilampplugin index 18e3f03..6734f14 160000 --- a/plugins/wifilampplugin +++ b/plugins/wifilampplugin @@ -1 +1 @@ -Subproject commit 18e3f03b692f04c37ec124c5dc9908a12956736f +Subproject commit 6734f145a9a18f71adfab12ce8197b63a9eda9e7 diff --git a/webserver/CMakeLists.txt b/webserver/CMakeLists.txt new file mode 100644 index 0000000..a6e25ff --- /dev/null +++ b/webserver/CMakeLists.txt @@ -0,0 +1,10 @@ +set(HEADERS +) + +set(SOURCES + main.cpp +) + +add_executable(webserver ${HEADERS} ${SOURCES}) + +target_link_libraries(webserver Qt5::Core dbcorelib webserverlib) diff --git a/webserverlib/CMakeLists.txt b/webserverlib/CMakeLists.txt new file mode 100644 index 0000000..9a8436c --- /dev/null +++ b/webserverlib/CMakeLists.txt @@ -0,0 +1,32 @@ +set(HEADERS + httpclientconnection.h + httpexception.h + httpnotfoundexception.h + httprequest.h + httpresponse.h + webapplication.h + weblistener.h + webplugin.h + webserver.h + webserverlib_global.h +) + +set(SOURCES + httpclientconnection.cpp + httpexception.cpp + httpnotfoundexception.cpp + httprequest.cpp + httpresponse.cpp + webapplication.cpp + weblistener.cpp + webplugin.cpp + webserver.cpp +) + +add_library(webserverlib SHARED ${HEADERS} ${SOURCES}) + +target_compile_definitions(webserverlib PRIVATE WEBSERVERLIB_LIBRARY) + +target_link_libraries(webserverlib Qt5::Core Qt5::Network dbnetworklib) + +target_include_directories(webserverlib PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})