mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
in addition to passing ${CMAKE_THREAD_LIBS_INIT} to the linker, this
interface library will also add -pthread to the compile options when
supported
Signed-off-by: Casey Bodley <cbodley@redhat.com>
37 lines
807 B
CMake
37 lines
807 B
CMake
# Part of Beast
|
|
|
|
GroupSources(extras/beast beast)
|
|
GroupSources(include/beast beast)
|
|
GroupSources(test/websocket "/")
|
|
|
|
add_executable (websocket-tests
|
|
${BEAST_INCLUDES}
|
|
../../extras/beast/unit_test/main.cpp
|
|
websocket_async_echo_peer.hpp
|
|
websocket_sync_echo_peer.hpp
|
|
error.cpp
|
|
option.cpp
|
|
rfc6455.cpp
|
|
stream.cpp
|
|
teardown.cpp
|
|
detail/frame.cpp
|
|
detail/mask.cpp
|
|
detail/stream_base.cpp
|
|
detail/utf8_checker.cpp
|
|
)
|
|
|
|
if (NOT WIN32)
|
|
target_link_libraries(websocket-tests ${Boost_LIBRARIES} Threads::Threads)
|
|
endif()
|
|
|
|
add_executable (websocket-echo
|
|
${BEAST_INCLUDES}
|
|
websocket_async_echo_peer.hpp
|
|
websocket_sync_echo_peer.hpp
|
|
websocket_echo.cpp
|
|
)
|
|
|
|
if (NOT WIN32)
|
|
target_link_libraries(websocket-echo ${Boost_LIBRARIES} Threads::Threads)
|
|
endif()
|