Parcourir la source

Add Chapter 5 and 6 executable to the test list

Godzil il y a 4 ans
Parent
commit
4dd7a3af39
1 fichiers modifiés avec 4 ajouts et 1 suppressions
  1. 4 1
      tests/CMakeLists.txt

+ 4 - 1
tests/CMakeLists.txt

@@ -26,4 +26,7 @@ target_link_libraries(ch5_test rayonnement)
 add_executable(ch6_test)
 target_include_directories(ch6_test PUBLIC ../source/include)
 target_sources(ch6_test PRIVATE ch6_test.cpp)
-target_link_libraries(ch6_test rayonnement)
+target_link_libraries(ch6_test rayonnement)
+
+add_test(NAME Chapter05_Test COMMAND $<TARGET_FILE:ch5_test>)
+add_test(NAME Chapter06_Test COMMAND $<TARGET_FILE:ch6_test>)