* proper check for Make

* fix documentation of ei_add_test
This commit is contained in:
Benoit Jacob 2009-10-19 15:56:03 -04:00
parent 6c1b91678b
commit 890bff977e
2 changed files with 25 additions and 18 deletions

View File

@ -142,21 +142,23 @@ if(EIGEN_BUILD_BTL)
endif(EIGEN_BUILD_BTL) endif(EIGEN_BUILD_BTL)
ei_testing_print_summary() ei_testing_print_summary()
if(NOT MSVC_IDE)
message("") message("")
message("Configured Eigen ${EIGEN_VERSION_NUMBER}") message("Configured Eigen ${EIGEN_VERSION_NUMBER}")
message("You can now do the following:")
message("--------------+----------------------------------------------------------------") string(TOLOWER "${CMAKE_GENERATOR}" cmake_generator_tolower)
message("Command | Description") if(cmake_generator_tolower MATCHES "makefile")
message("--------------+----------------------------------------------------------------") message("You can now do the following:")
message("make install | Install to ${CMAKE_INSTALL_PREFIX}") message("--------------+----------------------------------------------------------------")
message(" | * To change that: cmake . -DCMAKE_INSTALL_PREFIX=yourpath") message("Command | Description")
message("make btest | Build the unit tests") message("--------------+----------------------------------------------------------------")
message(" | * That takes lots of memory! Easy on the -j option") message("make install | Install to ${CMAKE_INSTALL_PREFIX}")
message("make test | Build and run the unit tests (using CTest)") message(" | * To change that: cmake . -DCMAKE_INSTALL_PREFIX=yourpath")
message("make test_qr | Build a specific test, here test_qr. To run it: test/test_qr") message("make btest | Build the unit tests")
message("make debug_qr | Build a test with full debug info. To run it: test/debug_qr") message("make test | Build and run the unit tests (using CTest)")
message("make blas | Build BLAS library (not the same thing as Eigen)") message("make test_qr | Build a specific test, here test_qr. To run it: test/test_qr")
message("make doc | Generate the API documentation, requires Doxygen & LaTeX") message("make debug_qr | Build a test with full debug info. To run it: test/debug_qr")
message("--------------+----------------------------------------------------------------") message("make blas | Build BLAS library (not the same thing as Eigen)")
endif(NOT MSVC_IDE) message("make doc | Generate the API documentation, requires Doxygen & LaTeX")
message("--------------+----------------------------------------------------------------")
endif()

View File

@ -110,13 +110,18 @@ endmacro(ei_add_test_internal)
# Macro to add a test # 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: # <testname>.cpp which follows this pattern:
# #
# #include "main.h" # #include "main.h"
# void test_<testname>() { ... } # 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 # A. Default behavior
# #