瀏覽代碼

Improved handling of Catch (fixes #13).

main
offa 7 年之前
父節點
當前提交
417d9563b5
共有 1 個文件被更改,包括 7 次插入2 次删除
  1. +7
    -2
      test/CMakeLists.txt

+ 7
- 2
test/CMakeLists.txt 查看文件

@@ -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)




Loading…
取消
儲存