From a576d7cbf65f627c92cba3cb6423a307ed63b97e Mon Sep 17 00:00:00 2001 From: Pavel Kartavyy Date: Thu, 16 Jan 2014 12:39:28 +0000 Subject: [PATCH] added "make check" command to run tests --- add.test.cmake | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 add.test.cmake diff --git a/add.test.cmake b/add.test.cmake new file mode 100644 index 00000000000..c9c0a7d33af --- /dev/null +++ b/add.test.cmake @@ -0,0 +1,10 @@ +# добавляем вывод программы при ошибке теста +enable_testing() +if (CMAKE_CONFIGURATION_TYPES) + add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} + --force-new-ctest-process --output-on-failure + --build-config "$") +else() + add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} + --force-new-ctest-process --output-on-failure) +endif()