comparison OrthancFramework/SharedLibrary/CMakeLists.txt @ 4107:d36b38da5947

uninstall target for the orthanc framework
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 06 Jul 2020 20:57:49 +0200
parents c5efe8897da8
children 9286649df279
comparison
equal deleted inserted replaced
4106:50cb0fb99e34 4107:d36b38da5947
486 ${Flags} 486 ${Flags}
487 ) 487 )
488 488
489 add_dependencies(UnitTests OrthancFramework) 489 add_dependencies(UnitTests OrthancFramework)
490 endif() 490 endif()
491
492
493
494 #####################################################################
495 ## Prepare the "uninstall" target
496 ## http://www.cmake.org/Wiki/CMake_FAQ#Can_I_do_.22make_uninstall.22_with_CMake.3F
497 #####################################################################
498
499 configure_file(
500 "${CMAKE_SOURCE_DIR}/../Resources/CMake/Uninstall.cmake.in"
501 "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
502 IMMEDIATE @ONLY)
503
504 add_custom_target(uninstall
505 COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake)