build_assimp_windows.cmd 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. @rem #
  2. @rem # Copyright (c) Contributors to the Open 3D Engine Project.
  3. @rem # For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. @rem #
  5. @rem # SPDX-License-Identifier: Apache-2.0 OR MIT
  6. @rem #
  7. @rem # note that we explicitly turn off the compilation of all features that rely on 3rd Party Libraries
  8. @rem # except the ones we want. This prevents the cmake build system from automatically finding things
  9. @rem # if they happen to be installed locally, which we don't want.
  10. @rem # cmake expects fowardslashes:
  11. set "DOWNLOADED_PACKAGE_FOLDERS=%DOWNLOADED_PACKAGE_FOLDERS:\=/%"
  12. cmake -S temp/src -G "Visual Studio 17" ^
  13. -DBUILD_SHARED_LIBS=OFF ^
  14. -DCMAKE_BUILD_TYPE=Release ^
  15. -DCMAKE_MODULE_PATH="%DOWNLOADED_PACKAGE_FOLDERS%" ^
  16. -DASSIMP_BUILD_ZLIB=OFF ^
  17. -DASSIMP_BUILD_ASSIMP_TOOLS=OFF ^
  18. -DASSIMP_BUILD_USD_IMPORTER=ON ^
  19. -DASSIMP_WARNINGS_AS_ERRORS=OFF ^
  20. temp/src/CMakeLists.txt || exit /b 1
  21. cmake --build temp/src --config release || exit /b 1
  22. cmake --build temp/src --config debug || exit /b 1
  23. cmake -S temp/src -G "Visual Studio 17" ^
  24. -DBUILD_SHARED_LIBS=ON ^
  25. -DCMAKE_BUILD_TYPE=Release ^
  26. -DCMAKE_MODULE_PATH="%DOWNLOADED_PACKAGE_FOLDERS%" ^
  27. -DASSIMP_BUILD_ZLIB=OFF ^
  28. -DASSIMP_BUILD_ASSIMP_TOOLS=OFF ^
  29. -DASSIMP_BUILD_USD_IMPORTER=ON ^
  30. -DASSIMP_WARNINGS_AS_ERRORS=OFF ^
  31. temp/src/CMakeLists.txt || exit /b 1
  32. cmake --build temp/src --config release || exit /b 1
  33. cmake --build temp/src --config debug || exit /b 1
  34. exit /b 0