myx-cmake/MyxCMake/modules/MyxCMakeUninstall.cmake

7 lines
285 B
CMake
Raw Normal View History

2021-12-08 11:32:04 +00:00
if(NOT TARGET uninstall)
2021-12-09 11:41:26 +00:00
configure_file("${CMAKE_CURRENT_LIST_DIR}/MyxCMakeUninstall.cmake.in"
2021-12-08 11:32:04 +00:00
"${CMAKE_BINARY_DIR}/cmake_uninstall.cmake" IMMEDIATE @ONLY)
add_custom_target(uninstall COMMAND ${CMAKE_COMMAND} -P ${CMAKE_BINARY_DIR}/cmake_uninstall.cmake)
endif()