forked from boostorg/beast
Revert "Add a Beast CMake interface target:"
This reverts commit 906db45bec.
This commit is contained in:
1 parent
4b5ffeff1e
commit
4d21f8d2cf
10 files changed
+111
-68
No files matched your search
+5
-1
@@ -16,7 +16,11 @@ add_executable (lib-tests
|
||||
zlib.cpp
|
||||
)
|
||||
|
||||
target_link_libraries(lib-tests Beast Boost::program_options)
|
||||
if (NOT WIN32)
|
||||
target_link_libraries(lib-tests ${Boost_LIBRARIES} Threads::Threads)
|
||||
else()
|
||||
target_link_libraries(lib-tests ${Boost_LIBRARIES})
|
||||
endif()
|
||||
|
||||
if (MINGW)
|
||||
set_target_properties(lib-tests PROPERTIES COMPILE_FLAGS "-Wa,-mbig-obj")
|
||||
|
||||
@@ -40,4 +40,6 @@ add_executable (core-tests
|
||||
sha1.cpp
|
||||
)
|
||||
|
||||
target_link_libraries(core-tests Beast Boost::program_options Boost::filesystem Boost::coroutine Boost::thread Boost::context)
|
||||
if (NOT WIN32)
|
||||
target_link_libraries(core-tests ${Boost_LIBRARIES} Threads::Threads)
|
||||
endif()
|
||||
@@ -33,7 +33,11 @@ add_executable (http-tests
|
||||
write.cpp
|
||||
)
|
||||
|
||||
target_link_libraries(http-tests Beast Boost::program_options Boost::filesystem Boost::coroutine Boost::thread Boost::context)
|
||||
if (NOT WIN32)
|
||||
target_link_libraries(http-tests ${Boost_LIBRARIES} Threads::Threads)
|
||||
else()
|
||||
target_link_libraries(http-tests ${Boost_LIBRARIES})
|
||||
endif()
|
||||
|
||||
add_executable (http-bench
|
||||
${BEAST_INCLUDES}
|
||||
@@ -45,4 +49,8 @@ add_executable (http-bench
|
||||
parser_bench.cpp
|
||||
)
|
||||
|
||||
target_link_libraries(http-bench Beast Boost::program_options Boost::filesystem)
|
||||
if (NOT WIN32)
|
||||
target_link_libraries(http-bench ${Boost_LIBRARIES} Threads::Threads)
|
||||
else()
|
||||
target_link_libraries(http-bench ${Boost_LIBRARIES})
|
||||
endif()
|
||||
@@ -21,7 +21,11 @@ add_executable (websocket-tests
|
||||
utf8_checker.cpp
|
||||
)
|
||||
|
||||
target_link_libraries(websocket-tests Beast Boost::program_options Boost::filesystem Boost::coroutine Boost::thread Boost::context)
|
||||
if (NOT WIN32)
|
||||
target_link_libraries(websocket-tests ${Boost_LIBRARIES} Threads::Threads)
|
||||
else()
|
||||
target_link_libraries(websocket-tests ${Boost_LIBRARIES})
|
||||
endif()
|
||||
|
||||
if (MINGW)
|
||||
set_target_properties(websocket-tests PROPERTIES COMPILE_FLAGS "-Wa,-mbig-obj -Og")
|
||||
|
||||
@@ -5,6 +5,8 @@ GroupSources(include/beast beast)
|
||||
|
||||
GroupSources(test/websocket/ssl "/")
|
||||
|
||||
include_directories(${OPENSSL_INCLUDE_DIR})
|
||||
|
||||
add_executable (websocket-ssl-tests
|
||||
${BEAST_INCLUDES}
|
||||
${EXTRAS_INCLUDES}
|
||||
@@ -14,4 +16,8 @@ add_executable (websocket-ssl-tests
|
||||
ssl_server.cpp
|
||||
)
|
||||
|
||||
target_link_libraries(websocket-ssl-tests Beast Boost::program_options Boost::filesystem OpenSSL::SSL)
|
||||
target_link_libraries(websocket-ssl-tests ${OPENSSL_LIBRARIES})
|
||||
|
||||
if (NOT WIN32)
|
||||
target_link_libraries(websocket-ssl-tests ${Boost_LIBRARIES} Threads::Threads)
|
||||
endif()
|
||||
@@ -19,4 +19,8 @@ add_executable (zlib-tests
|
||||
inflate_stream.cpp
|
||||
)
|
||||
|
||||
target_link_libraries(zlib-tests Beast Boost::program_options Boost::filesystem)
|
||||
if (NOT WIN32)
|
||||
target_link_libraries(zlib-tests ${Boost_LIBRARIES} Threads::Threads)
|
||||
else()
|
||||
target_link_libraries(zlib-tests ${Boost_LIBRARIES})
|
||||
endif()
|
||||
Reference in new issue
Block a user