diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 530e9e4e1..4132e6481 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -324,3 +324,6 @@ endif(CUDA_FOUND) endif(EIGEN_TEST_NVCC) + +file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/failtests) +add_test(NAME failtests WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/failtests COMMAND ${CMAKE_COMMAND} ${Eigen_SOURCE_DIR} -G "${CMAKE_GENERATOR}" -DEIGEN_FAILTEST=ON)