Only build and run tests in variant=coverage

This commit is contained in:
Vinnie Falco committed 2017-07-20 08:15:27 -07:00
1 parent 3cb1451a43
commit 9c4b3ed2a7
13 files changed
+123 -96

No files matched your search

+41 -37
View File
@@ -1,46 +1,50 @@
# Part of Beast
GroupSources(example/server-framework framework)
GroupSources(extras/beast extras)
GroupSources(include/beast beast)
if (NOT "${VARIANT}" STREQUAL "coverage")
GroupSources(test/server "/")
GroupSources(example/server-framework framework)
GroupSources(extras/beast extras)
GroupSources(include/beast beast)
if (OPENSSL_FOUND)
include_directories(${OPENSSL_INCLUDE_DIR})
endif()
GroupSources(test/server "/")
add_executable (server-test
${BEAST_INCLUDES}
${SERVER_INCLUDES}
../../extras/beast/unit_test/main.cpp
file_body.cpp
file_service.cpp
framework.cpp
http_async_port.cpp
http_base.cpp
http_sync_port.cpp
https_ports.cpp
multi_port.cpp
rfc7231.cpp
server.cpp
service_list.cpp
ssl_certificate
ssl_stream.cpp
tests.cpp
write_msg.cpp
ws_async_port.cpp
ws_sync_port.cpp
ws_upgrade_service.cpp
wss_ports.cpp
)
if (OPENSSL_FOUND)
include_directories(${OPENSSL_INCLUDE_DIR})
endif()
target_link_libraries(server-test
Beast
${Boost_PROGRAM_OPTIONS_LIBRARY}
${Boost_FILESYSTEM_LIBRARY}
add_executable (server-test
${BEAST_INCLUDES}
${SERVER_INCLUDES}
../../extras/beast/unit_test/main.cpp
file_body.cpp
file_service.cpp
framework.cpp
http_async_port.cpp
http_base.cpp
http_sync_port.cpp
https_ports.cpp
multi_port.cpp
rfc7231.cpp
server.cpp
service_list.cpp
ssl_certificate
ssl_stream.cpp
tests.cpp
write_msg.cpp
ws_async_port.cpp
ws_sync_port.cpp
ws_upgrade_service.cpp
wss_ports.cpp
)
if (OPENSSL_FOUND)
target_link_libraries(server-test ${OPENSSL_LIBRARIES})
target_link_libraries(server-test
Beast
${Boost_PROGRAM_OPTIONS_LIBRARY}
${Boost_FILESYSTEM_LIBRARY}
)
if (OPENSSL_FOUND)
target_link_libraries(server-test ${OPENSSL_LIBRARIES})
endif()
endif()