@@ -28,7 +28,8 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON) | |||
set(CMAKE_CXX_EXTENSIONS OFF) | |||
include_directories("include") | |||
add_library(ScopeGuard INTERFACE) | |||
target_include_directories(ScopeGuard INTERFACE "include") | |||
if( UNITTEST ) |
@@ -9,7 +9,7 @@ target_link_libraries(TestMain Catch) | |||
function(add_test_suite name) | |||
add_executable(${name} ${name}.cpp) | |||
target_link_libraries(${name} TestMain) | |||
target_link_libraries(${name} TestMain ScopeGuard) | |||
add_test(NAME ${name} COMMAND ${name}) | |||
endfunction() | |||