~singpolyma/biboumi

f481e2f194d60e9be39ca44ede8d46717937451e — louiz’ 5 years ago 97c8e2f
Fix the test_suite by using catch’s single_include directory
2 files changed, 2 insertions(+), 1 deletions(-)

M CMakeLists.txt
M tests/network.cpp
M CMakeLists.txt => CMakeLists.txt +1 -1
@@ 308,7 308,7 @@ set_target_properties(catch PROPERTIES EXCLUDE_FROM_ALL TRUE)
ExternalProject_Get_Property(catch SOURCE_DIR)
if(NOT EXISTS ${CMAKE_SOURCE_DIR}/tests/catch.hpp)
  target_include_directories(test_suite
    PUBLIC "${SOURCE_DIR}/include/"
    PUBLIC "${SOURCE_DIR}/single_include/"
    )
  add_dependencies(test_suite catch)
endif()

M tests/network.cpp => tests/network.cpp +1 -0
@@ 1,5 1,6 @@
#include "catch.hpp"
#include <network/tls_policy.hpp>
#include <sstream>

#ifdef BOTAN_FOUND
TEST_CASE("tls_policy")