Skip to content

Instantly share code, notes, and snippets.

@jcfr
Last active November 29, 2023 20:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jcfr/107aa2a6af08a7277c7afcb99c8efd2a to your computer and use it in GitHub Desktop.
Save jcfr/107aa2a6af08a7277c7afcb99c8efd2a to your computer and use it in GitHub Desktop.
Convenience batch scripts for building Slicer, SlicerVirtualReatity and SlicerMixedReality extensions
set cmake_exe=C:\cmake-3.22.1\bin\cmake.exe
set root_dir=C:\P
set source_dir=%root_dir%\S
set build_dir=%root_dir%\S-rwdi
set build_type=RelWithDebInfo
cd %root_dir%
%cmake_exe% -G "Visual Studio 17 2022" -A x64 ^
-DQt5_DIR:PATH=C:\Qt2\5.15.1\msvc2019_64\lib\cmake\Qt5 ^
-DSlicer_USE_SimpleITK:BOOL=OFF ^
-DSlicer_BUILD_CLI:BOOL=OFF ^
-DBUILD_TESTING:BOOL=OFF ^
-S %source_dir% ^
-B %build_dir%
%cmake_exe% --build %build_dir% --config %build_type% -- /maxcpucount:8
set cmake_exe=C:\cmake-3.22.1\bin\cmake.exe
set root_dir=C:\P
set source_dir=%root_dir%\SMR
set build_dir=%root_dir%\SMR-rwdi
set build_type=RelWithDebInfo
set slicer_dir=%root_dir%\S-rwdi/Slicer-build
cd %root_dir%
%cmake_exe% -G "Visual Studio 17 2022" -A x64 ^
-DSlicer_DIR:PATH=%slicer_dir% ^
-S %source_dir% ^
-B %build_dir%
%cmake_exe% --build %build_dir% --config %build_type% -- /maxcpucount:8
set cmake_exe=C:\cmake-3.22.1\bin\cmake.exe
set root_dir=C:\P
set source_dir=%root_dir%\SVR
set build_dir=%root_dir%\SVR-rwdi
set build_type=RelWithDebInfo
set slicer_dir=%root_dir%\S-rwdi/Slicer-build
cd %root_dir%
%cmake_exe% -G "Visual Studio 17 2022" -A x64 ^
-DSlicer_DIR:PATH=%slicer_dir% ^
-S %source_dir% ^
-B %build_dir%
%cmake_exe% --build %build_dir% --config %build_type% -- /maxcpucount:8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment