aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt12
1 files changed, 11 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 560341c..c2150b8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -34,4 +34,14 @@ install(TARGETS ricochet
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
-) \ No newline at end of file
+)
+
+if(NOT TARGET uninstall)
+ configure_file(
+ "${PROJECT_SOURCE_DIR}/etc/cmake_uninstall.cmake.in"
+ "${PROJECT_BINARY_DIR}/cmake_uninstall.cmake"
+ IMMEDIATE @ONLY)
+
+ add_custom_target(uninstall
+ COMMAND ${CMAKE_COMMAND} -P "${PROJECT_BINARY_DIR}/cmake_uninstall.cmake")
+endif() \ No newline at end of file