Page MenuHomePhabricator

Batch file for starting CTest
Closed, DuplicatePublic

Description

When running CTest on windows systems, you need the same environment variables like when starting the MITK application. It would be nice to have a batch file similar to the batch file for starting Visual Studio (StartVS_release.bat and StartVS_debug.bat) to start CTest.

It's easy to create such a batch file: Use the same environment variables as in the VS batch file but add the binary folder of CMake. Then call CTest instead of Visual Studio afterwards.

An example:

@set CL=/D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE
@set LINK=/LARGEADDRESSAWARE

PATH=D:/prg/MITK-01-bin/VTK-build/bin/release;D:/prg/MITK-01-bin/ITK-build/bin/release;D:/prg/MITK-01-bin/MITK-build/bin/release;V:/windows/x64/QT-4.7.0_VC9.0_Bin/lib/../bin;D:/prg/MITK-01-bin/CTK-build/CTK-build/bin/release;D:/prg/MITK-01-bin/MITK-build/bin/plugins/release;D:/prg/MITK-01-bin/GDCM-build/bin/release;D:/prg/MITK-01-bin/OpenCV-build/bin/release;C:/Program Files (x86)/CMake 2.8/bin;%PATH%

CTEST

cmd