forked from boostorg/beast
cmake: Use static libs to speed up builds
This commit is contained in:
@@ -23,6 +23,9 @@ if (OPENSSL_FOUND)
|
||||
|
||||
target_link_libraries (websocket-client-async-ssl
|
||||
OpenSSL::SSL OpenSSL::Crypto
|
||||
lib-asio
|
||||
lib-asio-ssl
|
||||
lib-beast
|
||||
)
|
||||
|
||||
endif()
|
||||
|
||||
@@ -16,4 +16,8 @@ add_executable (websocket-client-async
|
||||
websocket_client_async.cpp
|
||||
)
|
||||
|
||||
target_link_libraries(websocket-client-async
|
||||
lib-asio
|
||||
lib-beast)
|
||||
|
||||
set_property(TARGET websocket-client-async PROPERTY FOLDER "example-websocket-client")
|
||||
|
||||
@@ -23,6 +23,9 @@ if (OPENSSL_FOUND)
|
||||
|
||||
target_link_libraries (websocket-client-coro-ssl
|
||||
OpenSSL::SSL OpenSSL::Crypto
|
||||
lib-asio
|
||||
lib-asio-ssl
|
||||
lib-beast
|
||||
)
|
||||
|
||||
endif()
|
||||
|
||||
@@ -16,4 +16,8 @@ add_executable (websocket-client-coro
|
||||
websocket_client_coro.cpp
|
||||
)
|
||||
|
||||
target_link_libraries(websocket-client-coro
|
||||
lib-asio
|
||||
lib-beast)
|
||||
|
||||
set_property(TARGET websocket-client-coro PROPERTY FOLDER "example-websocket-client")
|
||||
|
||||
@@ -23,6 +23,9 @@ if (OPENSSL_FOUND)
|
||||
|
||||
target_link_libraries (websocket-client-sync-ssl
|
||||
OpenSSL::SSL OpenSSL::Crypto
|
||||
lib-asio
|
||||
lib-asio-ssl
|
||||
lib-beast
|
||||
)
|
||||
|
||||
endif()
|
||||
|
||||
@@ -16,4 +16,8 @@ add_executable (websocket-client-sync
|
||||
websocket_client_sync.cpp
|
||||
)
|
||||
|
||||
target_link_libraries(websocket-client-sync
|
||||
lib-asio
|
||||
lib-beast)
|
||||
|
||||
set_property(TARGET websocket-client-sync PROPERTY FOLDER "example-websocket-client")
|
||||
|
||||
@@ -23,6 +23,9 @@ if (OPENSSL_FOUND)
|
||||
|
||||
target_link_libraries (websocket-server-async-ssl
|
||||
OpenSSL::SSL OpenSSL::Crypto
|
||||
lib-asio
|
||||
lib-asio-ssl
|
||||
lib-beast
|
||||
)
|
||||
|
||||
endif()
|
||||
|
||||
@@ -16,4 +16,8 @@ add_executable (websocket-server-async
|
||||
websocket_server_async.cpp
|
||||
)
|
||||
|
||||
target_link_libraries(websocket-server-async
|
||||
lib-asio
|
||||
lib-beast)
|
||||
|
||||
set_property(TARGET websocket-server-async PROPERTY FOLDER "example-websocket-server")
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
#
|
||||
|
||||
GroupSources(include/boost/beast beast)
|
||||
GroupSources(example/cppcon2018 "/")
|
||||
GroupSources(example/websocket/server/chat-multi "/")
|
||||
|
||||
file (GLOB APP_FILES
|
||||
beast.hpp
|
||||
@@ -34,4 +34,8 @@ add_executable (websocket-chat-multi
|
||||
${BOOST_BEAST_FILES}
|
||||
)
|
||||
|
||||
target_link_libraries(websocket-chat-multi
|
||||
lib-asio
|
||||
lib-beast)
|
||||
|
||||
set_property(TARGET websocket-chat-multi PROPERTY FOLDER "example-websocket-server")
|
||||
|
||||
@@ -23,6 +23,9 @@ if (OPENSSL_FOUND)
|
||||
|
||||
target_link_libraries (websocket-server-coro-ssl
|
||||
OpenSSL::SSL OpenSSL::Crypto
|
||||
lib-asio
|
||||
lib-asio-ssl
|
||||
lib-beast
|
||||
)
|
||||
|
||||
endif()
|
||||
|
||||
@@ -16,4 +16,8 @@ add_executable (websocket-server-coro
|
||||
websocket_server_coro.cpp
|
||||
)
|
||||
|
||||
target_link_libraries(websocket-server-coro
|
||||
lib-asio
|
||||
lib-beast)
|
||||
|
||||
set_property(TARGET websocket-server-coro PROPERTY FOLDER "example-websocket-server")
|
||||
|
||||
@@ -16,4 +16,8 @@ add_executable (websocket-server-fast
|
||||
websocket_server_fast.cpp
|
||||
)
|
||||
|
||||
target_link_libraries(websocket-server-fast
|
||||
lib-asio
|
||||
lib-beast)
|
||||
|
||||
set_property(TARGET websocket-server-fast PROPERTY FOLDER "example-websocket-server")
|
||||
|
||||
@@ -23,6 +23,9 @@ if (OPENSSL_FOUND)
|
||||
|
||||
target_link_libraries (websocket-server-stackless-ssl
|
||||
OpenSSL::SSL OpenSSL::Crypto
|
||||
lib-asio
|
||||
lib-asio-ssl
|
||||
lib-beast
|
||||
)
|
||||
|
||||
endif()
|
||||
|
||||
@@ -16,4 +16,8 @@ add_executable (websocket-server-stackless
|
||||
websocket_server_stackless.cpp
|
||||
)
|
||||
|
||||
target_link_libraries(websocket-server-stackless
|
||||
lib-asio
|
||||
lib-beast)
|
||||
|
||||
set_property(TARGET websocket-server-stackless PROPERTY FOLDER "example-websocket-server")
|
||||
|
||||
@@ -23,6 +23,9 @@ if (OPENSSL_FOUND)
|
||||
|
||||
target_link_libraries (websocket-server-sync-ssl
|
||||
OpenSSL::SSL OpenSSL::Crypto
|
||||
lib-asio
|
||||
lib-asio-ssl
|
||||
lib-beast
|
||||
)
|
||||
|
||||
endif()
|
||||
|
||||
@@ -16,4 +16,8 @@ add_executable (websocket-server-sync
|
||||
websocket_server_sync.cpp
|
||||
)
|
||||
|
||||
target_link_libraries(websocket-server-sync
|
||||
lib-asio
|
||||
lib-beast)
|
||||
|
||||
set_property(TARGET websocket-server-sync PROPERTY FOLDER "example-websocket-server")
|
||||
|
||||
Reference in New Issue
Block a user