Add a check target to cmake (#1465)

This commit is contained in:
Paul Fultz II 2018-11-05 11:13:04 -06:00 committed by Daniel Marjamäki
parent ca19894a04
commit d62ed420d8
1 changed files with 3 additions and 0 deletions

View File

@ -23,4 +23,7 @@ if (BUILD_TESTS)
add_test(NAME testrunner COMMAND testrunner WORKING_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
add_custom_target(check COMMAND $<TARGET_FILE:testrunner> -q WORKING_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
add_dependencies(check testrunner)
endif()