summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorDRC <dcommander@users.sourceforge.net>2011-06-25 07:33:57 +0000
committerDRC <dcommander@users.sourceforge.net>2011-06-25 07:33:57 +0000
commitb7140022dfe7dfd1f52145e190ad0ff0f6cc83bd (patch)
treedfc5c66e8aa5e3b2856768fd996d9daf2ea4f81d /CMakeLists.txt
parent5b6aee2dbf63b15224061640c6ac0f8d3aa5f263 (diff)
downloadtigervnc-b7140022dfe7dfd1f52145e190ad0ff0f6cc83bd.tar.gz
tigervnc-b7140022dfe7dfd1f52145e190ad0ff0f6cc83bd.zip
Add uninstall target
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4554 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 675c3ddd..159de720 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -324,3 +324,9 @@ if(BUILD_NEW_VNCVIEWER)
endif()
include(cmake/BuildPackages.cmake)
+
+# uninstall
+configure_file("${CMAKE_SOURCE_DIR}/cmake/cmake_uninstall.cmake.in"
+ "cmake_uninstall.cmake" IMMEDIATE @ONLY)
+
+add_custom_target(uninstall COMMAND ${CMAKE_COMMAND} -P cmake_uninstall.cmake)