Fix the test_suite by using catch’s single_include directory

This commit is contained in:
louiz’
2018-04-28 13:57:17 +02:00
parent 97c8e2fed3
commit f481e2f194
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -308,7 +308,7 @@ set_target_properties(catch PROPERTIES EXCLUDE_FROM_ALL TRUE)
ExternalProject_Get_Property(catch SOURCE_DIR) ExternalProject_Get_Property(catch SOURCE_DIR)
if(NOT EXISTS ${CMAKE_SOURCE_DIR}/tests/catch.hpp) if(NOT EXISTS ${CMAKE_SOURCE_DIR}/tests/catch.hpp)
target_include_directories(test_suite target_include_directories(test_suite
PUBLIC "${SOURCE_DIR}/include/" PUBLIC "${SOURCE_DIR}/single_include/"
) )
add_dependencies(test_suite catch) add_dependencies(test_suite catch)
endif() endif()
+1
View File
@@ -1,5 +1,6 @@
#include "catch.hpp" #include "catch.hpp"
#include <network/tls_policy.hpp> #include <network/tls_policy.hpp>
#include <sstream>
#ifdef BOTAN_FOUND #ifdef BOTAN_FOUND
TEST_CASE("tls_policy") TEST_CASE("tls_policy")