Added CMakeLists.txt
This commit is contained in:
3
CMakeLists.txt
Normal file
3
CMakeLists.txt
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
add_subdirectory(plugins)
|
||||||
|
add_subdirectory(webserver)
|
||||||
|
add_subdirectory(webserverlib)
|
7
plugins/CMakeLists.txt
Normal file
7
plugins/CMakeLists.txt
Normal 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)
|
Submodule plugins/fileserverplugin updated: 38770b214a...996ea3c9ee
Submodule plugins/helloworldplugin updated: 5bd4447e2a...db376d03cb
Submodule plugins/proxyplugin updated: cc11f8645b...77b377ee0b
Submodule plugins/seriesplugin updated: 16206f6822...f8d6b4e806
Submodule plugins/wifilampplugin updated: 18e3f03b69...6734f145a9
10
webserver/CMakeLists.txt
Normal file
10
webserver/CMakeLists.txt
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
set(HEADERS
|
||||||
|
)
|
||||||
|
|
||||||
|
set(SOURCES
|
||||||
|
main.cpp
|
||||||
|
)
|
||||||
|
|
||||||
|
add_executable(webserver ${HEADERS} ${SOURCES})
|
||||||
|
|
||||||
|
target_link_libraries(webserver Qt5::Core dbcorelib webserverlib)
|
32
webserverlib/CMakeLists.txt
Normal file
32
webserverlib/CMakeLists.txt
Normal 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})
|
Reference in New Issue
Block a user