BUILDBINARIES_EXAMPLE.bat 959 B

1234567891011121314151617181920212223242526
  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. :: For generators see "cmake --help"
  11. SET GENERATOR=Visual Studio 15 2017
  12. SET BINARIES_DIR="./BINARIES/Win32"
  13. cmake CMakeLists.txt -G "%GENERATOR%" -S %SOURCE_DIR% -B %BINARIES_DIR%
  14. cmake --build %BINARIES_DIR% --config release
  15. SET BINARIES_DIR="./BINARIES/x64"
  16. cmake CMakeLists.txt -G "%GENERATOR% Win64" -S %SOURCE_DIR% -B %BINARIES_DIR%
  17. cmake --build %BINARIES_DIR% --config debug
  18. cmake --build %BINARIES_DIR% --config release
  19. PAUSE