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) include(CTest)
enable_testing() # must be called from the root CMakeLists, see man page enable_testing() # must be called from the root CMakeLists, see man page
if(EIGEN_LEAVE_TEST_IN_ALL_TARGET) 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() else()
add_subdirectory(test EXCLUDE_FROM_ALL) add_subdirectory(test EXCLUDE_FROM_ALL)
endif() endif()
add_subdirectory(unsupported) add_subdirectory(unsupported)
@ -171,4 +171,4 @@ endif()
message("") message("")
message("To build/run the unit tests, read this page:") message("To build/run the unit tests, read this page:")
message(" http://eigen.tuxfamily.org/index.php?title=Tests") message(" http://eigen.tuxfamily.org/index.php?title=Tests")
message("") message("")

View File

@ -1,3 +1,7 @@
add_subdirectory(Eigen) add_subdirectory(Eigen)
add_subdirectory(doc EXCLUDE_FROM_ALL) 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()