]> Creatis software - cpPlugins.git/blobdiff - CMakeLists.txt
...
[cpPlugins.git] / CMakeLists.txt
index 9c1193760dacd0be14cf5a7fd5068726bef9e165..c3431881383059eae5e5ce49e47a9cb3f9ed6f74 100644 (file)
@@ -57,7 +57,20 @@ if(cpPlugins_BUILD)
 
 endif(cpPlugins_BUILD)
 
+## == Installation commands
+include(cmake/cpPlgInstallCommands.cmake)
+
 ## == CMake scripts
 subdirs(cmake)
 
+## == Uninstall target
+configure_file(
+  "${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in"
+  "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
+  IMMEDIATE @ONLY
+  )
+add_custom_target(
+  uninstall
+  COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake)
+
 ## eof - $RCSfile$