LookingGlass/cmake/UninstallTarget.cmake

10 lines
282 B
CMake
Raw Normal View History

if (NOT TARGET uninstall)
configure_file(
"${CMAKE_CURRENT_LIST_DIR}/uninstall.cmake.in"
"${CMAKE_CURRENT_BINARY_DIR}/uninstall.cmake"
IMMEDIATE @ONLY)
add_custom_target(uninstall
COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/uninstall.cmake)
endif()