tools/CMakeLists.txt
changeset 2593 dd995a9c8871
parent 2550 3f84392522cf
child 2641 b08cafb86797
--- a/tools/CMakeLists.txt	Thu Oct 29 17:51:54 2009 +0000
+++ b/tools/CMakeLists.txt	Thu Oct 29 23:59:46 2009 +0000
@@ -1,3 +1,13 @@
+if (NOT APPLE)
+CONFIGURE_FILE(
+  "${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in"
+  "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
+  IMMEDIATE @ONLY)
+
+ADD_CUSTOM_TARGET(uninstall
+  "${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake")
+endif()
+
 if (APPLE AND BUNDLE)
 
 find_package(OGGVORBIS REQUIRED)