瀏覽代碼

Target name adjusted.

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

+ 3
- 3
test/CMakeLists.txt 查看文件

@@ -3,13 +3,13 @@ add_library(Catch INTERFACE)
target_include_directories(Catch INTERFACE "catch")


add_library(testmain TestMain.cpp)
target_link_libraries(testmain Catch)
add_library(TestMain TestMain.cpp)
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)
add_test(NAME ${name} COMMAND ${name})
endfunction()


Loading…
取消
儲存