inform about not executed tests if ssl or compression aren't enabled.

This commit is contained in:
Luca Schlecker 2021-08-30 02:31:20 +02:00
parent 989ae6a6cd
commit 4c5b8d31cf

View File

@ -81,6 +81,13 @@ endif()
# Tests # Tests
if(NOT MSVC AND CROW_BUILD_TESTS) if(NOT MSVC AND CROW_BUILD_TESTS)
if(NOT CROW_ENABLE_COMPRESSION)
message(STATUS "Compression tests are omitted. (Configure with CROW_ENABLE_COMPRESSION=ON to enable them)")
endif()
if(NOT CROW_ENABLE_SSL)
message(STATUS "SSL tests are omitted. (Configure with CROW_ENABLE_SSL=ON to enable them)")
endif()
add_subdirectory(tests) add_subdirectory(tests)
enable_testing() enable_testing()
add_test(NAME crow_test COMMAND ${CMAKE_CURRENT_BINARY_DIR}/tests/unittest) add_test(NAME crow_test COMMAND ${CMAKE_CURRENT_BINARY_DIR}/tests/unittest)