BUILDBINARIES_EXAMPLE.bat 943 B

12345678910111213141516171819202122232425
  1. :: This is an example file to generate binaries using Windows Operating System
  2. :: This script is configured to be executed from the source directory
  3. :: Compiled binaries will be placed in BINARIES_DIR\code\CONFIG
  4. :: NOTE
  5. :: The build process will generate a config.h file that is placed in BINARIES_DIR\include
  6. :: This file must be merged with SOURCE_DIR\include
  7. :: You should write yourself a script that copies the files where you want them.
  8. :: Also see: https://github.com/assimp/assimp/pull/2646
  9. SET SOURCE_DIR=.
  10. SET GENERATOR=Visual Studio 16 2019
  11. SET BINARIES_DIR="./build/Win32"
  12. cmake . -G "%GENERATOR%" -A Win32 -S %SOURCE_DIR% -B %BINARIES_DIR%
  13. cmake --build %BINARIES_DIR% --config debug
  14. cmake --build %BINARIES_DIR% --config release
  15. SET BINARIES_DIR="./build/x64"
  16. cmake . -G "%GENERATOR%" -A x64 -S %SOURCE_DIR% -B %BINARIES_DIR%
  17. cmake --build %BINARIES_DIR% --config debug
  18. cmake --build %BINARIES_DIR% --config release
  19. PAUSE