build all tests when make check is called

This commit is contained in:
Pavel Kartavyy 2015-04-20 14:35:55 +03:00
parent 4f469ea831
commit a123675d7d

View File

@ -8,3 +8,8 @@ else()
add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND}
--force-new-ctest-process --output-on-failure)
endif()
macro (add_check target)
add_test(test_${target} ${target})
add_dependencies(check ${target})
endmacro (add_check)