Enable target uninstall.
This commit is contained in:
parent
c89bd1db23
commit
b0ad19bca3
@ -221,3 +221,14 @@ install(
|
|||||||
DESTINATION
|
DESTINATION
|
||||||
${CMAKE_INSTALL_DATADIR}/applications
|
${CMAKE_INSTALL_DATADIR}/applications
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# uninstall target
|
||||||
|
configure_file(
|
||||||
|
"${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in"
|
||||||
|
"${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
|
||||||
|
IMMEDIATE @ONLY
|
||||||
|
)
|
||||||
|
|
||||||
|
add_custom_target( uninstall
|
||||||
|
COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake
|
||||||
|
)
|
Loading…
Reference in New Issue
Block a user