1 # UninstallTarget.cmake 2 # 3 # Defines a custom target named 'uninstall' 4 5 if(NOT TARGET uninstall) 6 configure_file( 7 "${CMAKE_SOURCE_DIR}/cmake/cmake_uninstall.cmake.in" 8 "${CMAKE_BINARY_DIR}/cmake_uninstall.cmake" 9 IMMEDIATE @ONLY) 10 11 add_custom_target(uninstall 12 COMMAND ${CMAKE_COMMAND} -P ${CMAKE_BINARY_DIR}/cmake_uninstall.cmake) 13 endif(NOT TARGET uninstall)