7 -## Add a rule to download the catch unit test framework
9 -include(ExternalProject)
10 -ExternalProject_Add(catch
11 - GIT_REPOSITORY "https://lab.louiz.org/louiz/Catch.git"
14 - CONFIGURE_COMMAND ""
18 -set_target_properties(catch PROPERTIES EXCLUDE_FROM_ALL TRUE)
19 -ExternalProject_Get_Property(catch SOURCE_DIR)
20 -if(NOT EXISTS ${CMAKE_SOURCE_DIR}/tests/catch.hpp)
21 - target_include_directories(test_suite
22 - PUBLIC "${SOURCE_DIR}/single_include/"
24 - add_dependencies(test_suite catch)
28 ## Add some custom rules to launch the tests
30 add_custom_target(check COMMAND "test_suite"