Skip to content
Permalink
Browse files
Added uninstall target for Unix platforms.
  • Loading branch information
icculus committed Feb 3, 2010
1 parent a40d3e1 commit 8ce71e5924ff421632a333e837a37e007f08399c
Showing with 21 additions and 1 deletion.
  1. +11 −1 CMakeLists.txt
  2. +10 −0 extras/uninstall.sh
@@ -521,7 +521,17 @@ ELSE(DOXYGEN_FOUND)
ENDIF(DOXYGEN_FOUND)

IF(UNIX)
ADD_CUSTOM_TARGET(dist ./extras/makedist.sh ${PHYSFS_VERSION} COMMENT "Building source tarball")
ADD_CUSTOM_TARGET(
dist
./extras/makedist.sh ${PHYSFS_VERSION}
COMMENT "Building source tarball..."
)
ADD_CUSTOM_TARGET(
uninstall
"${CMAKE_CURRENT_SOURCE_DIR}/extras/uninstall.sh"
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
COMMENT "Uninstall the project..."
)
ENDIF(UNIX)

MACRO(MESSAGE_BOOL_OPTION _NAME _VALUE)
@@ -0,0 +1,10 @@
#!/bin/sh

if [ ! -f "./install_manifest.txt" ]; then
echo "ERROR: This needs to be run from your CMake build directory after installing." 1>&2
exit 1
fi

xargs rm -vf < install_manifest.txt
exit 0

0 comments on commit 8ce71e5

Please sign in to comment.