File: AddUninstallTarget.cmake

package info (click to toggle)
broccoli-python 0.62-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 460 kB
  • ctags: 105
  • sloc: python: 407; sh: 202; makefile: 21
file content (9 lines) | stat: -rw-r--r-- 444 bytes parent folder | download | duplicates (22)
1
2
3
4
5
6
7
8
9
if (NOT TARGET uninstall)
    if ( EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/cmake/cmake_uninstall.cmake.in" )
        configure_file("${CMAKE_CURRENT_SOURCE_DIR}/cmake/cmake_uninstall.cmake.in"
                       "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
                        @ONLY)
        add_custom_target(uninstall COMMAND
            ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake)
    endif ()
endif ()