Explorar el Código

Improved handling of Catch (fixes #13).

main
offa hace 7 años
padre
commit
417d9563b5
Se han modificado 1 ficheros con 7 adiciones y 2 borrados
  1. +7
    -2
      test/CMakeLists.txt

+ 7
- 2
test/CMakeLists.txt Ver fichero

@@ -1,6 +1,11 @@

add_library(Catch INTERFACE)
target_include_directories(Catch INTERFACE "catch")


add_library(testmain TestMain.cpp)
target_include_directories(testmain SYSTEM PUBLIC "catch/")
target_link_libraries(testmain Catch)


function(add_test_suite name)
add_executable(${name} ${name}.cpp)
@@ -8,8 +13,8 @@ function(add_test_suite name)
add_test(NAME ${name} COMMAND ${name})
endfunction()

add_test_suite(ScopeGuardTest)

add_test_suite(ScopeGuardTest)




Cargando…
Cancelar
Guardar