diff options
-rw-r--r-- | CMakeLists.txt | 34 | ||||
-rw-r--r-- | cmake/EigenTesting.cmake | 9 |
2 files changed, 25 insertions, 18 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 0c068e6f5..ed9e6d183 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -142,21 +142,23 @@ if(EIGEN_BUILD_BTL) endif(EIGEN_BUILD_BTL) ei_testing_print_summary() -if(NOT MSVC_IDE) + message("") message("Configured Eigen ${EIGEN_VERSION_NUMBER}") -message("You can now do the following:") -message("--------------+----------------------------------------------------------------") -message("Command | Description") -message("--------------+----------------------------------------------------------------") -message("make install | Install to ${CMAKE_INSTALL_PREFIX}") -message(" | * To change that: cmake . -DCMAKE_INSTALL_PREFIX=yourpath") -message("make btest | Build the unit tests") -message(" | * That takes lots of memory! Easy on the -j option") -message("make test | Build and run the unit tests (using CTest)") -message("make test_qr | Build a specific test, here test_qr. To run it: test/test_qr") -message("make debug_qr | Build a test with full debug info. To run it: test/debug_qr") -message("make blas | Build BLAS library (not the same thing as Eigen)") -message("make doc | Generate the API documentation, requires Doxygen & LaTeX") -message("--------------+----------------------------------------------------------------") -endif(NOT MSVC_IDE) + +string(TOLOWER "${CMAKE_GENERATOR}" cmake_generator_tolower) +if(cmake_generator_tolower MATCHES "makefile") + message("You can now do the following:") + message("--------------+----------------------------------------------------------------") + message("Command | Description") + message("--------------+----------------------------------------------------------------") + message("make install | Install to ${CMAKE_INSTALL_PREFIX}") + message(" | * To change that: cmake . -DCMAKE_INSTALL_PREFIX=yourpath") + message("make btest | Build the unit tests") + message("make test | Build and run the unit tests (using CTest)") + message("make test_qr | Build a specific test, here test_qr. To run it: test/test_qr") + message("make debug_qr | Build a test with full debug info. To run it: test/debug_qr") + message("make blas | Build BLAS library (not the same thing as Eigen)") + message("make doc | Generate the API documentation, requires Doxygen & LaTeX") + message("--------------+----------------------------------------------------------------") +endif() diff --git a/cmake/EigenTesting.cmake b/cmake/EigenTesting.cmake index f33e9fea1..22aea3d0d 100644 --- a/cmake/EigenTesting.cmake +++ b/cmake/EigenTesting.cmake @@ -110,13 +110,18 @@ endmacro(ei_add_test_internal) # Macro to add a test # -# the unique parameter testname must correspond to a file +# the unique mandatory parameter testname must correspond to a file # <testname>.cpp which follows this pattern: # # #include "main.h" # void test_<testname>() { ... } # -# Depending on the contents of that file, this macro can have 2 behaviors. +# Depending on the contents of that file, this macro can have 2 behaviors, +# see below. +# +# Optional parameters can be passed: the 2nd parameter is additional compile flags +# (optimization will be explicitly disabled for the debug test targets) and the 3rd +# parameter is libraries to link to. # # A. Default behavior # |