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 1eedae844e
commit c5d00bc223

View File

@ -1365,6 +1365,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
#-----------------------------------------------------------------------------