Mercurial > hg > orthanc
comparison CMakeLists.txt @ 584:a042693cc6a9
uninstall target for make
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 02 Oct 2013 14:21:43 +0200 |
parents | 5790c359e008 |
children | a00f626290db |
comparison
equal
deleted
inserted
replaced
583:bf333b2ed95d | 584:a042693cc6a9 |
---|---|
375 ) | 375 ) |
376 | 376 |
377 else() | 377 else() |
378 message("Doxygen not found. The documentation will not be built.") | 378 message("Doxygen not found. The documentation will not be built.") |
379 endif() | 379 endif() |
380 | |
381 | |
382 ##################################################################### | |
383 ## Prepare the "uninstall" target | |
384 ## http://www.cmake.org/Wiki/CMake_FAQ#Can_I_do_.22make_uninstall.22_with_CMake.3F | |
385 ##################################################################### | |
386 | |
387 configure_file( | |
388 "${CMAKE_CURRENT_SOURCE_DIR}/Resources/CMake/Uninstall.cmake.in" | |
389 "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake" | |
390 IMMEDIATE @ONLY) | |
391 | |
392 add_custom_target(uninstall | |
393 COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake) |