looking-glass/cmake/UninstallTarget.cmake
2021-08-16 19:56:37 +10:00

9 lines
282 B
CMake

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()