forked from boostorg/beast
A new server framework is introduced, allowing users to quickly get off the ground. Example servers are refactored to use the common framework.
30 lines
608 B
CMake
30 lines
608 B
CMake
# Part of Beast
|
|
|
|
add_subdirectory (core)
|
|
add_subdirectory (http)
|
|
add_subdirectory (server)
|
|
add_subdirectory (websocket)
|
|
add_subdirectory (zlib)
|
|
|
|
GroupSources(extras/beast extras)
|
|
GroupSources(include/beast beast)
|
|
GroupSources(test "/")
|
|
|
|
add_executable (lib-tests
|
|
${BEAST_INCLUDES}
|
|
${EXTRAS_INCLUDES}
|
|
../extras/beast/unit_test/main.cpp
|
|
config.cpp
|
|
core.cpp
|
|
http.cpp
|
|
version.cpp
|
|
websocket.cpp
|
|
zlib.cpp
|
|
)
|
|
|
|
target_link_libraries(lib-tests Beast ${Boost_PROGRAM_OPTIONS_LIBRARY})
|
|
|
|
if (MINGW)
|
|
set_target_properties(lib-tests PROPERTIES COMPILE_FLAGS "-Wa,-mbig-obj")
|
|
endif()
|