Build tests for unsupported modules if EIGEN_LEAVE_TEST_IN_ALL_TARGET

This commit is contained in:
Jitse Niesen 2009-11-13 13:05:57 +00:00
parent 7e3c4096d8
commit d07c05b3a5
2 changed files with 8 additions and 4 deletions

View File

@ -132,9 +132,9 @@ add_subdirectory(doc EXCLUDE_FROM_ALL)
include(CTest)
enable_testing() # must be called from the root CMakeLists, see man page
if(EIGEN_LEAVE_TEST_IN_ALL_TARGET)
add_subdirectory(test) # can't do EXCLUDE_FROM_ALL here, breaks CTest
add_subdirectory(test) # can't do EXCLUDE_FROM_ALL here, breaks CTest
else()
add_subdirectory(test EXCLUDE_FROM_ALL)
add_subdirectory(test EXCLUDE_FROM_ALL)
endif()
add_subdirectory(unsupported)

View File

@ -1,3 +1,7 @@
add_subdirectory(Eigen)
add_subdirectory(doc EXCLUDE_FROM_ALL)
add_subdirectory(test EXCLUDE_FROM_ALL)
if(EIGEN_LEAVE_TEST_IN_ALL_TARGET)
add_subdirectory(test) # can't do EXCLUDE_FROM_ALL here, breaks CTest
else()
add_subdirectory(test EXCLUDE_FROM_ALL)
endif()