myx-cmake/MyxCMake/modules/MyxCMakeUninstall.cmake

10 lines
309 B
CMake
Raw Permalink Normal View History

2022-05-06 09:49:46 +00:00
include_guard(GLOBAL)
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()