diff --git a/CMakeLists.txt b/CMakeLists.txt index 0894b6d..ce51105 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -44,6 +44,7 @@ endif() if (ELFIO_BUILD_TESTS AND IS_TOP_PROJECT) enable_testing() + add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} USES_TERMINAL) add_subdirectory(tests) endif() diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 0190b9e..9f8274c 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -43,4 +43,4 @@ add_test( WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}) -add_custom_target(check DEPENDS test) +add_dependencies(check ELFIOTest)