cmlib/CMLibUninstall.cmake

9 lines
324 B
CMake
Raw Normal View History

2019-02-12 16:31:17 +00:00
if(NOT TARGET uninstall)
2019-02-16 10:10:12 +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
add_custom_target(uninstall
2019-02-16 10:10:12 +00:00
COMMAND ${CMAKE_COMMAND} -P
${CMAKE_BINARY_DIR}/cmake_uninstall.cmake)
2019-02-12 16:31:17 +00:00
endif()