cmake: Use static libs to speed up builds

This commit is contained in:
Vinnie Falco committed 2019-03-23 17:50:38 -07:00
1 parent b01d692ad7
commit b38901887b
60 files changed
+369 -91

No files matched your search

+8 -3
View File
@@ -8,8 +8,9 @@
#
add_definitions (-DBOOST_BEAST_ALLOW_DEPRECATED)
add_definitions (-DBOOST_BEAST_TESTS)
# For buffers_cat
add_definitions (-DBOOST_BEAST_TESTS)
add_subdirectory (_experimental)
add_subdirectory (core)
@@ -21,13 +22,11 @@ add_subdirectory (zlib)
#-------------------------------------------------------------------------------
GroupSources (include/boost/beast beast)
GroupSources (test/extras/include/boost/beast extras)
GroupSources (test/beast "/")
add_executable (tests-beast
${BOOST_BEAST_FILES}
${EXTRAS_FILES}
${TEST_MAIN}
Jamfile
core.cpp
http.cpp
@@ -37,4 +36,10 @@ add_executable (tests-beast
zlib.cpp
)
target_link_libraries(tests-beast
lib-asio
lib-asio-ssl
lib-beast
lib-test)
set_property(TARGET tests-beast PROPERTY FOLDER "tests")
+6 -3
View File
@@ -8,17 +8,20 @@
#
GroupSources (include/boost/beast beast)
GroupSources (test/extras/include/boost/beast extras)
GroupSources (test/beast/_experimental "/")
add_executable (tests-beast-_experimental
${BOOST_BEAST_FILES}
${EXTRAS_FILES}
${TEST_MAIN}
Jamfile
error.cpp
icy_stream.cpp
stream.cpp
)
target_link_libraries(tests-beast-_experimental
lib-asio
lib-beast
lib-test
)
set_property(TARGET tests-beast-_experimental PROPERTY FOLDER "tests")
+7 -3
View File
@@ -8,13 +8,10 @@
#
GroupSources (include/boost/beast beast)
GroupSources (test/extras/include/boost/beast extras)
GroupSources (test/beast/core "/")
add_executable (tests-beast-core
${BOOST_BEAST_FILES}
${EXTRAS_FILES}
${TEST_MAIN}
Jamfile
test_buffer.hpp
file_test.hpp
@@ -69,4 +66,11 @@ add_executable (tests-beast-core
tcp_stream.cpp
)
target_link_libraries(tests-beast-core
lib-asio
lib-asio-ssl
lib-beast
lib-test
)
set_property(TARGET tests-beast-core PROPERTY FOLDER "tests")
+7 -1
View File
@@ -14,7 +14,6 @@ GroupSources (test/beast/http "/")
add_executable (tests-beast-http
${BOOST_BEAST_FILES}
${EXTRAS_FILES}
${TEST_MAIN}
Jamfile
message_fuzz.hpp
test_parser.hpp
@@ -43,4 +42,11 @@ add_executable (tests-beast-http
write.cpp
)
target_link_libraries(tests-beast-http
lib-asio
lib-asio-ssl
lib-beast
lib-test
)
set_property(TARGET tests-beast-http PROPERTY FOLDER "tests")
+7 -1
View File
@@ -12,9 +12,15 @@ GroupSources (test/beast/ssl "/")
add_executable (tests-beast-ssl
${BOOST_BEAST_FILES}
${TEST_MAIN}
Jamfile
ssl_stream.cpp
)
target_link_libraries(tests-beast-ssl
lib-asio
lib-asio-ssl
lib-beast
lib-test
)
set_property(TARGET tests-beast-ssl PROPERTY FOLDER "tests")
+7 -1
View File
@@ -14,7 +14,6 @@ GroupSources (test/beast/websocket "/")
add_executable (tests-beast-websocket
${BOOST_BEAST_FILES}
${EXTRAS_FILES}
${TEST_MAIN}
Jamfile
_detail_decorator.cpp
_detail_prng.cpp
@@ -43,4 +42,11 @@ add_executable (tests-beast-websocket
write.cpp
)
target_link_libraries(tests-beast-websocket
lib-asio
lib-asio-ssl
lib-beast
lib-test
)
set_property(TARGET tests-beast-websocket PROPERTY FOLDER "tests")
+6 -3
View File
@@ -8,7 +8,6 @@
#
GroupSources (include/boost/beast beast)
GroupSources (test/extras/include/boost/beast extras)
GroupSources (test/extern/zlib-1.2.11 zlib)
GroupSources (test/beast/zlib "/")
@@ -18,9 +17,7 @@ endif()
add_executable (tests-beast-zlib
${BOOST_BEAST_FILES}
${EXTRAS_FILES}
${ZLIB_SOURCES}
${TEST_MAIN}
Jamfile
error.cpp
deflate_stream.cpp
@@ -28,4 +25,10 @@ add_executable (tests-beast-zlib
zlib.cpp
)
target_link_libraries(tests-beast-zlib
lib-asio
lib-beast
lib-test
)
set_property(TARGET tests-beast-zlib PROPERTY FOLDER "tests")