1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-19 06:41:47 -05:00
sdrangel/httpserver/CMakeLists.txt

60 lines
1.2 KiB
CMake
Raw Normal View History

2017-08-23 14:03:52 -04:00
project(httpserver)
2018-11-24 15:21:04 -05:00
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
2017-08-23 14:03:52 -04:00
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
httplistenersettings.h
httpdocrootsettings.h
httpsessionssettings.h
2017-08-23 14:03:52 -04:00
)
include_directories(
.
${CMAKE_SOURCE_DIR}/exports
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}
)
2018-12-01 21:06:04 -05:00
set_target_properties(httpserver PROPERTIES DEFINE_SYMBOL "httpserver_EXPORTS")
2017-08-23 14:03:52 -04:00
target_link_libraries(httpserver
${QT_LIBRARIES}
)
target_link_libraries(httpserver Qt5::Core Qt5::Network)
2017-08-23 14:03:52 -04:00
install(TARGETS httpserver DESTINATION lib)