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")
|
||||
|
||||
Reference in New Issue
Block a user