unittest-cpp/vs_projects/strip_cmake.bat
Patrick Johnmeyer 500bb6ef7d Add strip_cmake.bat for deleting "extra" files generated by CMake.
Note that the solutions/workspaces generated for Visual Studio, by
default, will still have the extra projects in them. They must be
deleted from the project before running this strip_cmake.bat.

TODO: Teach strip_cmake.bat how to actually strip the offending
projects from the solutions/workspaces.
2013-03-24 01:31:51 -05:00

17 lines
No EOL
502 B
Batchfile

@echo off
setlocal
set slnDir_=%1
rem TODO: Use VS automation to remove CMake projects
rem This batch file tries to delete things from the sub-folders
rem that may or may not be there based on the Visual Studio
rem version in play. I chose to make it quick and dumb so that
rem it can be called on each project folder with no special
rem logic.
pushd %slnDir_%
del /Q ALL_BUILD.* check.* cmake_install.cmake CMakeCache.txt CTestTestfile.cmake
del /Q INSTALL.* RUN_TESTS.*
rmdir /s /q CMakeFiles
popd