mirror of
https://github.com/json-c/json-c.git
synced 2026-04-12 16:59:06 +08:00
Merge pull request #546 from dota17/make_unistall
Add uninstall target in cmake
This commit is contained in:
@@ -353,6 +353,12 @@ else (DOXYGEN_FOUND)
|
||||
message("Doxygen need to be installed to generate the doxygen documentation")
|
||||
endif(DOXYGEN_FOUND)
|
||||
|
||||
# uninstall
|
||||
add_custom_target(uninstall
|
||||
COMMAND cat ${PROJECT_BINARY_DIR}/install_manifest.txt | xargs rm
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
)
|
||||
|
||||
# XXX for a normal full distribution we'll need to figure out
|
||||
# XXX how to build both shared and static libraries.
|
||||
# Probably leverage that to build a local VALGRIND=1 library for testing too.
|
||||
|
||||
Reference in New Issue
Block a user