diff options
author | Abhijit Kundu <abhijit.kundu@gatech.edu> | 2014-12-04 02:57:03 -0500 |
---|---|---|
committer | Abhijit Kundu <abhijit.kundu@gatech.edu> | 2014-12-04 02:57:03 -0500 |
commit | eb3695d2fc75dd97bd0131672b9f160275e5caad (patch) | |
tree | 5518882e9416297b990089ef95c6d1c6ae19d375 /CMakeLists.txt | |
parent | 433bce5c3a18e0929e95bae6cb142f1ad920e5ac (diff) |
Added cmake uninstall target.
This adds a cmake command make uninstall
Running make uninstall removes the files installed by running make install
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 05d92babe..f9610a522 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -448,6 +448,7 @@ if(cmake_generator_tolower MATCHES "makefile") message(STATUS "make check | Build and run the unit-tests. Read this page:") message(STATUS " | http://eigen.tuxfamily.org/index.php?title=Tests") message(STATUS "make blas | Build BLAS library (not the same thing as Eigen)") + message(STATUS "make uninstall| Removes files installed by make install") message(STATUS "--------------+--------------------------------------------------------------") else() message(STATUS "To build/run the unit tests, read this page:") @@ -483,3 +484,7 @@ install ( FILES ${CMAKE_CURRENT_SOURCE_DIR}/cmake/UseEigen3.cmake ${CMAKE_CURRENT_BINARY_DIR}/Eigen3Config.cmake DESTINATION ${EIGEN_CONFIG_CMAKE_PATH} ) + +# Add uninstall target +add_custom_target ( uninstall + COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_SOURCE_DIR}/cmake/EigenUninstall.cmake) |