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 (http-client-async-ssl
|
||||
OpenSSL::SSL OpenSSL::Crypto
|
||||
lib-asio
|
||||
lib-asio-ssl
|
||||
lib-beast
|
||||
)
|
||||
|
||||
endif()
|
||||
|
||||
@@ -16,4 +16,8 @@ add_executable (http-client-async
|
||||
http_client_async.cpp
|
||||
)
|
||||
|
||||
target_link_libraries(http-client-async
|
||||
lib-asio
|
||||
lib-beast)
|
||||
|
||||
set_property(TARGET http-client-async PROPERTY FOLDER "example-http-client")
|
||||
|
||||
@@ -23,6 +23,9 @@ if (OPENSSL_FOUND)
|
||||
|
||||
target_link_libraries (http-client-coro-ssl
|
||||
OpenSSL::SSL OpenSSL::Crypto
|
||||
lib-asio
|
||||
lib-asio-ssl
|
||||
lib-beast
|
||||
)
|
||||
|
||||
endif()
|
||||
|
||||
@@ -16,4 +16,8 @@ add_executable (http-client-coro
|
||||
http_client_coro.cpp
|
||||
)
|
||||
|
||||
target_link_libraries(http-client-coro
|
||||
lib-asio
|
||||
lib-beast)
|
||||
|
||||
set_property(TARGET http-client-coro PROPERTY FOLDER "example-http-client")
|
||||
|
||||
@@ -18,5 +18,9 @@ add_executable (http-crawl
|
||||
http_crawl.cpp
|
||||
)
|
||||
|
||||
target_link_libraries(http-crawl
|
||||
lib-asio
|
||||
lib-beast)
|
||||
|
||||
set_property(TARGET http-crawl PROPERTY FOLDER "example-http-client")
|
||||
|
||||
|
||||
@@ -23,6 +23,9 @@ if (OPENSSL_FOUND)
|
||||
|
||||
target_link_libraries (http-client-sync-ssl
|
||||
OpenSSL::SSL OpenSSL::Crypto
|
||||
lib-asio
|
||||
lib-asio-ssl
|
||||
lib-beast
|
||||
)
|
||||
|
||||
endif()
|
||||
|
||||
@@ -16,4 +16,8 @@ add_executable (http-client-sync
|
||||
http_client_sync.cpp
|
||||
)
|
||||
|
||||
target_link_libraries(http-client-sync
|
||||
lib-asio
|
||||
lib-beast)
|
||||
|
||||
set_property(TARGET http-client-sync PROPERTY FOLDER "example-http-client")
|
||||
|
||||
Reference in New Issue
Block a user