Added make clobber target, imported in from the VSG project.

This commit is contained in:
Robert Osfield 2018-11-09 11:28:57 +00:00
parent c424a2daaa
commit 8636ad8394

View File

@ -1316,6 +1316,13 @@ IF(NOT OSG_CONFIG_HAS_BEEN_RUN_BEFORE)
SET(OSG_CONFIG_HAS_BEEN_RUN_BEFORE 1 CACHE INTERNAL "Flag to track whether this is the first time running CMake or if CMake has been configured before")
ENDIF()
#-----------------------------------------------------------------------------
# add clobber build target to clear all the non git registered files/directories
#-----------------------------------------------------------------------------
add_custom_target(clobber
COMMAND git clean -d -f -x
)
#-----------------------------------------------------------------------------
### uninstall target
#-----------------------------------------------------------------------------