Added CMakeLists.txt

This commit is contained in:
Daniel Brunner
2018-10-07 22:39:02 +02:00
parent d839750945
commit 5b7ff092b4
9 changed files with 57 additions and 5 deletions

3
CMakeLists.txt Normal file
View File

@@ -0,0 +1,3 @@
add_subdirectory(plugins)
add_subdirectory(webserver)
add_subdirectory(webserverlib)

7
plugins/CMakeLists.txt Normal file
View File

@@ -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)

10
webserver/CMakeLists.txt Normal file
View File

@@ -0,0 +1,10 @@
set(HEADERS
)
set(SOURCES
main.cpp
)
add_executable(webserver ${HEADERS} ${SOURCES})
target_link_libraries(webserver Qt5::Core dbcorelib webserverlib)

View File

@@ -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})