diff options
-rw-r--r-- | CMakeLists.txt | 4 | ||||
-rw-r--r-- | test/CMakeLists.txt | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 07291fac4..39b29e48d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -277,6 +277,10 @@ add_subdirectory(Eigen) add_subdirectory(doc EXCLUDE_FROM_ALL) +add_custom_target(buildtests) +add_custom_target(check COMMAND "ctest") +add_dependencies(check buildtests) + # CMake/Ctest does not allow us to change the build command, # so we have to workaround by directly editing the generated DartConfiguration.tcl file # save CMAKE_MAKE_PROGRAM diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 15816f138..3cd862cd5 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -1,7 +1,3 @@ -project(EigenTesting) -add_custom_target(buildtests) -add_custom_target(check COMMAND "ctest") -add_dependencies(check buildtests) find_package(GSL) if(GSL_FOUND AND GSL_VERSION_MINOR LESS 9) |