forked from blender/cycles
Brecht Van Lommel
4a91d24da4
* Change default install directory to install/, so that multi config always install files to the same directory regardless of build config * Install Hydra dll in install/hydra subdirectory, to make the directory layout a bit cleaner and be more consistent with the Houdini case * Init install prefix and build type to good defaults even when not using the make wrapper * Tweak build instructions to work for Windows, using a cmake command instead of BUILD_CMAKE_ARGS * Build with Visual Studio project files for make wrapper. Speeds up builds since NMake is single threaded, and gives a Visual Studio project to work with. * Workaround odd OCIO linking error with SCENE_LINEAR string
30 lines
822 B
Batchfile
30 lines
822 B
Batchfile
@echo off
|
|
|
|
REM Convenience wrapper for CMake commands
|
|
|
|
setlocal enableextensions enabledelayedexpansion
|
|
|
|
set BUILD_DIR=build
|
|
set PYTHON=python
|
|
set COMMAND=%1
|
|
|
|
if "%COMMAND%" == "" (
|
|
set COMMAND=release
|
|
)
|
|
|
|
if "%COMMAND%" == "release" (
|
|
cmake -B %BUILD_DIR% && cd %BUILD_DIR% && cmake --build . --target install --config Release
|
|
) else if "%COMMAND%" == "debug" (
|
|
cmake -B %BUILD_DIR% && cd %BUILD_DIR% && cmake --build . --target install --config Debug
|
|
) else if "%COMMAND%" == "clean" (
|
|
cd %BUILD_DIR% && cmake --build . --target install --config Clean
|
|
) else if "%COMMAND%" == "test" (
|
|
cd %BUILD_DIR% && ctest --config Release
|
|
) else if "%COMMAND%" == "update" (
|
|
%PYTHON% src/cmake/make_update.py
|
|
) else if "%COMMAND%" == "format" (
|
|
%PYTHON% src/cmake/make_format.py
|
|
) else (
|
|
echo Command "%COMMAND%" unknown
|
|
)
|