test_openexr_windows.cmd 855 B

12345678910111213141516171819202122232425
  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 #
  8. rmdir /S /Q temp\build_test
  9. mkdir temp\build_test
  10. @rem CMAKE demands forward slashes but PACKAGE_ROOT is in native path:
  11. set "PACKAGE_ROOT=%PACKAGE_ROOT:\=/%"
  12. set "DOWNLOADED_PACKAGE_FOLDERS=%DOWNLOADED_PACKAGE_FOLDERS:\=/%"
  13. cmake -S test -B temp/build_test ^
  14. -DCMAKE_MODULE_PATH="%DOWNLOADED_PACKAGE_FOLDERS%;%PACKAGE_ROOT%" || exit /b 1
  15. cmake --build temp/build_test --parallel --config Release || exit /b 1
  16. temp\build_test\Release\test_openexr.exe || exit /b 1
  17. cmake --build temp/build_test --parallel --config Debug || exit /b 1
  18. temp\build_test\Debug\test_openexr.exe || exit /b 1
  19. exit /b 0