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()