cmake: Use static libs to speed up builds

This commit is contained in:
Vinnie Falco
2019-03-23 17:50:38 -07:00
parent b01d692ad7
commit b38901887b
60 changed files with 369 additions and 91 deletions
@@ -23,6 +23,9 @@ if (OPENSSL_FOUND)
target_link_libraries (advanced-server-flex
OpenSSL::SSL OpenSSL::Crypto
lib-asio
lib-asio-ssl
lib-beast
)
endif()
+4
View File
@@ -16,4 +16,8 @@ add_executable (advanced-server
advanced_server.cpp
)
target_link_libraries(advanced-server
lib-asio
lib-beast)
set_property(TARGET advanced-server PROPERTY FOLDER "example-advanced-server")
+4
View File
@@ -16,4 +16,8 @@ add_executable (echo-op
echo_op.cpp
)
target_link_libraries(echo-op
lib-asio
lib-beast)
set_property(TARGET echo-op PROPERTY FOLDER "example")
@@ -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()
+4
View File
@@ -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()
+4
View File
@@ -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")
+4
View File
@@ -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()
+4
View File
@@ -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")
@@ -23,6 +23,9 @@ if (OPENSSL_FOUND)
target_link_libraries (http-server-async-ssl
OpenSSL::SSL OpenSSL::Crypto
lib-asio
lib-asio-ssl
lib-beast
)
endif()
+5
View File
@@ -16,4 +16,9 @@ add_executable (http-server-async
http_server_async.cpp
)
target_link_libraries(http-server-async
lib-asio
lib-asio-ssl
lib-beast)
set_property(TARGET http-server-async PROPERTY FOLDER "example-http-server")
@@ -23,6 +23,9 @@ if (OPENSSL_FOUND)
target_link_libraries (http-server-coro-ssl
OpenSSL::SSL OpenSSL::Crypto
lib-asio
lib-asio-ssl
lib-beast
)
endif()
+4
View File
@@ -16,4 +16,8 @@ add_executable (http-server-coro
http_server_coro.cpp
)
target_link_libraries(http-server-coro
lib-asio
lib-beast)
set_property(TARGET http-server-coro PROPERTY FOLDER "example-http-server")
+4
View File
@@ -19,4 +19,8 @@ add_executable (http-server-fast
http_server_fast.cpp
)
target_link_libraries(http-server-fast
lib-asio
lib-beast)
set_property(TARGET http-server-fast PROPERTY FOLDER "example-http-server")
+3
View File
@@ -23,6 +23,9 @@ if (OPENSSL_FOUND)
target_link_libraries (http-server-flex
OpenSSL::SSL OpenSSL::Crypto
lib-asio
lib-asio-ssl
lib-beast
)
endif()
+4
View File
@@ -16,4 +16,8 @@ add_executable (http-server-small
http_server_small.cpp
)
target_link_libraries(http-server-small
lib-asio
lib-beast)
set_property(TARGET http-server-small PROPERTY FOLDER "example-http-server")
@@ -23,6 +23,9 @@ if (OPENSSL_FOUND)
target_link_libraries (http-server-stackless-ssl
OpenSSL::SSL OpenSSL::Crypto
lib-asio
lib-asio-ssl
lib-beast
)
endif()
@@ -16,4 +16,8 @@ add_executable (http-server-stackless
http_server_stackless.cpp
)
target_link_libraries(http-server-stackless
lib-asio
lib-beast)
set_property(TARGET http-server-stackless PROPERTY FOLDER "example-http-server")
@@ -23,6 +23,9 @@ if (OPENSSL_FOUND)
target_link_libraries (http-server-sync-ssl
OpenSSL::SSL OpenSSL::Crypto
lib-asio
lib-asio-ssl
lib-beast
)
endif()
+5
View File
@@ -16,4 +16,9 @@ add_executable (http-server-sync
http_server_sync.cpp
)
target_link_libraries(http-server-sync
lib-asio
lib-asio-ssl
lib-beast)
set_property(TARGET http-server-sync PROPERTY FOLDER "example-http-server")
@@ -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")