assimp-fez/BUILDBINARIES_EXAMPLE.bat

26 lines
943 B
Batchfile
Raw Permalink Normal View History

2019-09-09 08:50:57 -05:00
:: This is an example file to generate binaries using Windows Operating System
:: This script is configured to be executed from the source directory
:: Compiled binaries will be placed in BINARIES_DIR\code\CONFIG
2019-09-09 08:56:21 -05:00
:: NOTE
:: The build process will generate a config.h file that is placed in BINARIES_DIR\include
2019-09-09 14:20:44 -05:00
:: This file must be merged with SOURCE_DIR\include
:: You should write yourself a script that copies the files where you want them.
:: Also see: https://github.com/assimp/assimp/pull/2646
2019-09-09 08:56:21 -05:00
2019-09-09 08:50:57 -05:00
SET SOURCE_DIR=.
SET GENERATOR=Visual Studio 16 2019
2019-09-09 08:50:57 -05:00
SET BINARIES_DIR="./build/Win32"
cmake . -G "%GENERATOR%" -A Win32 -S %SOURCE_DIR% -B %BINARIES_DIR%
cmake --build %BINARIES_DIR% --config debug
2019-09-09 08:50:57 -05:00
cmake --build %BINARIES_DIR% --config release
SET BINARIES_DIR="./build/x64"
cmake . -G "%GENERATOR%" -A x64 -S %SOURCE_DIR% -B %BINARIES_DIR%
2019-09-09 08:50:57 -05:00
cmake --build %BINARIES_DIR% --config debug
cmake --build %BINARIES_DIR% --config release
PAUSE