Browse Source

Target name adjusted.

main
offa 7 years ago
parent
commit
6710dac767
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      test/CMakeLists.txt

+ 3
- 3
test/CMakeLists.txt View File

target_include_directories(Catch INTERFACE "catch") 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) function(add_test_suite name)
add_executable(${name} ${name}.cpp) add_executable(${name} ${name}.cpp)
target_link_libraries(${name} testmain)
target_link_libraries(${name} TestMain)
add_test(NAME ${name} COMMAND ${name}) add_test(NAME ${name} COMMAND ${name})
endfunction() endfunction()



Loading…
Cancel
Save