CMakeLists.txt
changeset 1041 f7b7996e54f1
parent 1040 5fc90d008821
child 1042 dc9291957a5a
--- a/CMakeLists.txt	Tue Feb 02 23:04:28 2010 -0500
+++ b/CMakeLists.txt	Tue Feb 02 23:22:49 2010 -0500
@@ -521,7 +521,17 @@
 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)