2019-09-09 13:50:57 +00: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 13:56:21 +00:00
|
|
|
:: NOTE
|
|
|
|
:: The build process will generate a config.h file that is placed in BINARIES_DIR\include
|
2019-09-09 19:20:44 +00: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 13:56:21 +00:00
|
|
|
|
2019-09-09 13:50:57 +00:00
|
|
|
SET SOURCE_DIR=.
|
|
|
|
|
|
|
|
:: For generators see "cmake --help"
|
|
|
|
SET GENERATOR=Visual Studio 15 2017
|
|
|
|
|
|
|
|
SET BINARIES_DIR="./BINARIES/Win32"
|
|
|
|
cmake CMakeLists.txt -G "%GENERATOR%" -S %SOURCE_DIR% -B %BINARIES_DIR%
|
|
|
|
cmake --build %BINARIES_DIR% --config release
|
|
|
|
|
|
|
|
SET BINARIES_DIR="./BINARIES/x64"
|
|
|
|
cmake CMakeLists.txt -G "%GENERATOR% Win64" -S %SOURCE_DIR% -B %BINARIES_DIR%
|
|
|
|
cmake --build %BINARIES_DIR% --config debug
|
|
|
|
cmake --build %BINARIES_DIR% --config release
|
|
|
|
|
|
|
|
PAUSE
|