2017-08-23 14:03:52 -04:00
|
|
|
project(httpserver)
|
|
|
|
|
|
|
|
set(httpserver_SOURCES
|
|
|
|
httpglobal.cpp
|
|
|
|
httplistener.cpp
|
|
|
|
httpconnectionhandler.cpp
|
|
|
|
httpconnectionhandlerpool.cpp
|
|
|
|
httprequest.cpp
|
|
|
|
httpresponse.cpp
|
|
|
|
httpcookie.cpp
|
|
|
|
httprequesthandler.cpp
|
|
|
|
httpsession.cpp
|
|
|
|
httpsessionstore.cpp
|
|
|
|
staticfilecontroller.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
set(httpserver_HEADERS
|
|
|
|
httpglobal.h
|
|
|
|
httplistener.h
|
|
|
|
httpconnectionhandler.h
|
|
|
|
httpconnectionhandlerpool.h
|
|
|
|
httprequest.h
|
|
|
|
httpresponse.h
|
|
|
|
httpcookie.h
|
|
|
|
httprequesthandler.h
|
|
|
|
httpsession.h
|
|
|
|
httpsessionstore.h
|
|
|
|
staticfilecontroller.h
|
2017-11-12 19:01:15 -05:00
|
|
|
httplistenersettings.h
|
|
|
|
httpdocrootsettings.h
|
|
|
|
httpsessionssettings.h
|
2017-08-23 14:03:52 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
.
|
2018-03-03 14:23:38 -05:00
|
|
|
${CMAKE_SOURCE_DIR}/sdrbase
|
2017-08-23 14:03:52 -04:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
)
|
|
|
|
|
|
|
|
#include(${QT_USE_FILE})
|
|
|
|
add_definitions(${QT_DEFINITIONS})
|
|
|
|
add_definitions(-DQT_SHARED)
|
|
|
|
|
|
|
|
add_library(httpserver SHARED
|
|
|
|
${httpserver_SOURCES}
|
|
|
|
${httpserver_HEADERS_MOC}
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(httpserver
|
|
|
|
${QT_LIBRARIES}
|
|
|
|
)
|
|
|
|
|
|
|
|
qt5_use_modules(httpserver Core Network)
|
|
|
|
|
|
|
|
install(TARGETS httpserver DESTINATION lib)
|