diff --git a/CMakeLists.txt b/CMakeLists.txt index 6893c10df..9f4f2c411 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -750,33 +750,34 @@ if(PROJECT_IS_TOP_LEVEL) else() message(STATUS "Available targets (use: cmake --build . --target TARGET):") endif() - message(STATUS "---------+--------------------------------------------------------------") - message(STATUS "Target | Description") - message(STATUS "---------+--------------------------------------------------------------") - message(STATUS "install | Install Eigen. Headers will be installed to:") - message(STATUS " | /") - message(STATUS " | Using the following values:") - message(STATUS " | CMAKE_INSTALL_PREFIX: ${CMAKE_INSTALL_PREFIX}") - message(STATUS " | INCLUDE_INSTALL_DIR: ${INCLUDE_INSTALL_DIR}") - message(STATUS " | Change the install location of Eigen headers using:") - message(STATUS " | cmake . -DCMAKE_INSTALL_PREFIX=yourprefix") - message(STATUS " | Or:") - message(STATUS " | cmake . -DINCLUDE_INSTALL_DIR=yourdir") - message(STATUS "uninstall| Remove files installed by the install target") + message(STATUS "------------+--------------------------------------------------------------") + message(STATUS "Target | Description") + message(STATUS "------------+--------------------------------------------------------------") + message(STATUS "install | Install Eigen. Headers will be installed to:") + message(STATUS " | /") + message(STATUS " | Using the following values:") + message(STATUS " | CMAKE_INSTALL_PREFIX: ${CMAKE_INSTALL_PREFIX}") + message(STATUS " | INCLUDE_INSTALL_DIR: ${INCLUDE_INSTALL_DIR}") + message(STATUS " | Change the install location of Eigen headers using:") + message(STATUS " | cmake . -DCMAKE_INSTALL_PREFIX=yourprefix") + message(STATUS " | Or:") + message(STATUS " | cmake . -DINCLUDE_INSTALL_DIR=yourdir") + message(STATUS "uninstall | Remove files installed by the install target") if (EIGEN_BUILD_DOC) - message(STATUS "doc | Generate the API documentation, requires Doxygen & LaTeX") + message(STATUS "doc | Generate the API documentation, requires Doxygen & LaTeX") + message(STATUS "install-doc | Install the API documentation") endif() if(EIGEN_BUILD_TESTING) - message(STATUS "check | Build and run the unit-tests. Read this page:") - message(STATUS " | http://eigen.tuxfamily.org/index.php?title=Tests") + message(STATUS "check | Build and run the unit-tests. Read this page:") + message(STATUS " | http://eigen.tuxfamily.org/index.php?title=Tests") endif() if (EIGEN_BUILD_BLAS) - message(STATUS "blas | Build BLAS library (not the same thing as Eigen)") + message(STATUS "blas | Build BLAS library (not the same thing as Eigen)") endif() if (EIGEN_BUILD_LAPACK) - message(STATUS "lapack | Build LAPACK subset library (not the same thing as Eigen)") + message(STATUS "lapack | Build LAPACK subset library (not the same thing as Eigen)") endif() - message(STATUS "---------+--------------------------------------------------------------") + message(STATUS "------------+--------------------------------------------------------------") message(STATUS "") endif() diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index 0d123a2fa..6178d4b69 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -115,3 +115,8 @@ add_custom_target(doc ALL WORKING_DIRECTORY ${Eigen_BINARY_DIR}/doc) add_dependencies(doc doc-eigen-prerequisites doc-unsupported-prerequisites) + +add_custom_target(install-doc ALL + COMMAND ${CMAKE_COMMAND} -E copy_directory ${Eigen_BINARY_DIR}/doc ${CMAKE_INSTALL_FULL_DOCDIR} +) +add_dependencies(install-doc doc)