You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CMakeLists.txt 451B

7 vuotta sitten
123456789101112131415161718192021
  1. add_library(testmain TestMain.cpp)
  2. target_include_directories(testmain SYSTEM PUBLIC "catch/")
  3. function(add_test_suite name)
  4. add_executable(${name} ${name}.cpp)
  5. target_link_libraries(${name} testmain)
  6. add_test(NAME ${name} COMMAND ${name})
  7. endfunction()
  8. add_test_suite(ScopeGuardTest)
  9. add_custom_target(unittest ScopeGuardTest
  10. COMMENT "Running unittests\n\n"
  11. VERBATIM
  12. )