doctest

FORK: The fastest feature-rich C++11/14/17/20 single-header testing framework
git clone https://git.neptards.moe/neptards/doctest.git
Log | Files | Refs | README

CMakeLists.txt (364B)


      1 add_executable(playground main.cpp test.cpp)
      2 target_link_libraries(playground doctest)
      3 
      4 doctest_add_test(NAME playground NO_OUTPUT COMMAND $<TARGET_FILE:playground> -nv)
      5 
      6 #add_custom_command(TARGET playground POST_BUILD COMMAND $<TARGET_FILE:${PROJECT_NAME}>)
      7 #add_custom_command(TARGET playground POST_BUILD COMMAND ctest -C $<CONFIGURATION> --output-on-failure)