X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=CMakeLists.txt;h=468e790f4832237b40df49db1b959a42eda4a966;hb=a352874d231ad2b117f55cf384c18361a0dfe67a;hp=ede88ffa09ce6e2d7aed432ad68b6900ffb11a9b;hpb=94a0bf3ae8768e2f4ec5848692276dca05208e80;p=modules%2Fshaper.git diff --git a/CMakeLists.txt b/CMakeLists.txt index ede88ffa0..468e790f4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -68,3 +68,12 @@ IF(${HAVE_SALOME}) ENDIF(${HAVE_SALOME}) ENABLE_TESTING() + +# Add the uninstall target for eclipse IDE +if (CMAKE_GENERATOR MATCHES "NMake Makefiles") +configure_file("${CMAKE_SOURCE_DIR}/CMakeCommon/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) +endif (CMAKE_GENERATOR MATCHES "NMake Makefiles")