Projektarbeit Line Following Robot bei Prof. Chowanetz im WS22/23
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

cmake_uninstall.cmake.in 1.2KB

12345678910111213141516171819202122232425262728
  1. # -----------------------------------------------
  2. # File that provides "make uninstall" target
  3. # We use the file 'install_manifest.txt'
  4. # -----------------------------------------------
  5. IF(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt")
  6. MESSAGE(FATAL_ERROR "Cannot find install manifest: \"@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt\"")
  7. ENDIF(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt")
  8. FILE(READ "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt" files)
  9. STRING(REGEX REPLACE "\n" ";" files "${files}")
  10. FOREACH(file ${files})
  11. MESSAGE(STATUS "Uninstalling \"$ENV{DESTDIR}${file}\"")
  12. # IF(EXISTS "$ENV{DESTDIR}${file}")
  13. # EXEC_PROGRAM(
  14. # "@CMAKE_COMMAND@" ARGS "-E remove \"$ENV{DESTDIR}${file}\""
  15. # OUTPUT_VARIABLE rm_out
  16. # RETURN_VALUE rm_retval
  17. # )
  18. EXECUTE_PROCESS(COMMAND rm $ENV{DESTDIR}${file})
  19. # IF(NOT "${rm_retval}" STREQUAL 0)
  20. # MESSAGE(FATAL_ERROR "Problem when removing \"$ENV{DESTDIR}${file}\"")
  21. # ENDIF(NOT "${rm_retval}" STREQUAL 0)
  22. # ELSE(EXISTS "$ENV{DESTDIR}${file}")
  23. # MESSAGE(STATUS "File \"$ENV{DESTDIR}${file}\" does not exist.")
  24. # ENDIF(EXISTS "$ENV{DESTDIR}${file}")
  25. ENDFOREACH(file)