[vtkusers] Using the command line version of Visual Studio 2008 (devenv)

Andrew Maclean andrew.amaclean at gmail.com
Fri Feb 1 00:48:16 EST 2008


It is often not appreciated that Visual Studio can be run from a command
line. The advantage here is that the it can run in the task scheduler or in
a command window. So you can keep working whime all your Kitware stuff
builds.

I create a batch file called Build.cmd with the following content (remember
to change FP and the directories in the command line to suit where the *.sln
files are):

-----------------------------------------------------------------------------------------------------------------------
SET FP=<Directory where the build file is>
"C:/Program Files/Microsoft Visual Studio 8/Common7/IDE/devenv.com"
"CMake\CMake.sln" /build Release /project ALL_BUILD >
"%FP%\CMake\CMakeRelease.log"

"C:/Program Files/Microsoft Visual Studio 8/Common7/IDE/devenv.com"
"VTK\VTK.sln" /build Debug /project ALL_BUILD > "%FP%\VTK\VTKDebug.log"
"C:/Program Files/Microsoft Visual Studio 8/Common7/IDE/devenv.com"
"VTK\VTK.sln" /build Release /project ALL_BUILD > "%FP%\VTK\VTKRelease.log"

"C:/Program Files/Microsoft Visual Studio 8/Common7/IDE/devenv.com"
"ParaView\ParaView.sln" /build Debug /project ALL_BUILD >
"%FP%\ParaView\ParaViewDebug.log"
"C:/Program Files/Microsoft Visual Studio 8/Common7/IDE/devenv.com"
"ParaView\ParaView.sln" /build Release /project ALL_BUILD >
"%FP%\ParaView\ParaViewRelease.log"

"C:/Program Files/Microsoft Visual Studio 8/Common7/IDE/devenv.com"
"Insight\ITK.sln" /build Debug /project ALL_BUILD >
"%FP%\Insight\ITKDebug.log"
"C:/Program Files/Microsoft Visual Studio 8/Common7/IDE/devenv.com"
"Insight\ITK.sln" /build Release /project ALL_BUILD >
"%FP%\Insight\ITKRelease.log"

"C:/Program Files/Microsoft Visual Studio 8/Common7/IDE/devenv.com"
"InsightApplications\InsightApplications.sln" /build Debug /project
ALL_BUILD > "%FP%\InsightApplications\InsightApplicationsDebug.log"
"C:/Program Files/Microsoft Visual Studio 8/Common7/IDE/devenv.com"
"InsightApplications\InsightApplications.sln" /build Release /project
ALL_BUILD > "%FP%\InsightApplications\InsightApplicationsRelease.log"
-----------------------------------------------------------------------------------------------------------------------

Andrew

-- 
___________________________________________
Andrew J. P. Maclean
Centre for Autonomous Systems
The Rose Street Building J04
The University of Sydney  2006  NSW
AUSTRALIA
Ph: +61 2 9351 3283
Fax: +61 2 9351 7474
URL: http://www.acfr.usyd.edu.au/
___________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20080201/2712a134/attachment.htm>


More information about the vtkusers mailing list