cmlib/CMLibUninstall.cmake

7 lines
276 B
CMake
Raw Normal View History

2019-02-12 16:31:17 +00:00
if(NOT TARGET uninstall)
2020-04-01 18:42:59 +00:00
configure_file("${CMLIB_MODULE_DIR}/CMLibUninstall.cmake.in" "${CMAKE_BINARY_DIR}/cmake_uninstall.cmake"
IMMEDIATE @ONLY)
2019-02-12 16:31:17 +00:00
2020-04-01 18:42:59 +00:00
add_custom_target(uninstall COMMAND ${CMAKE_COMMAND} -P ${CMAKE_BINARY_DIR}/cmake_uninstall.cmake)
2019-02-12 16:31:17 +00:00
endif()