File: UninstallTarget.cmake

package info (click to toggle)
evolution 3.46.4-2%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 139,692 kB
  • sloc: ansic: 505,728; javascript: 8,030; xml: 5,208; python: 702; makefile: 559; sh: 294; perl: 169
file content (13 lines) | stat: -rw-r--r-- 364 bytes parent folder | download | duplicates (14)
1
2
3
4
5
6
7
8
9
10
11
12
13
# UninstallTarget.cmake
#
# Defines a custom target named 'uninstall'

if(NOT TARGET uninstall)
	configure_file(
		"${CMAKE_SOURCE_DIR}/cmake/cmake_uninstall.cmake.in"
		"${CMAKE_BINARY_DIR}/cmake_uninstall.cmake"
		IMMEDIATE @ONLY)

	add_custom_target(uninstall
		COMMAND ${CMAKE_COMMAND} -P ${CMAKE_BINARY_DIR}/cmake_uninstall.cmake)
endif(NOT TARGET uninstall)