build.bat 645 B

12345678910111213141516171819202122232425
  1. @REM Copyright (c) 2012-2016 Sebastien Rombauts (sebastien.rombauts@gmail.com)
  2. @REM
  3. @REM Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt
  4. @REM or copy at http://opensource.org/licenses/MIT)
  5. mkdir build
  6. cd build
  7. @REM Generate a Visual Studio solution for latest version found
  8. cmake -DSQLITECPP_BUILD_EXAMPLES=ON -DSQLITECPP_BUILD_TESTS=ON ..
  9. if ERRORLEVEL 1 goto onError
  10. @REM Build default configuration (ie 'Debug')
  11. cmake --build .
  12. if ERRORLEVEL 1 goto onError
  13. @REM Build and run tests
  14. ctest --output-on-failure
  15. if ERRORLEVEL 1 goto onError
  16. cd ..
  17. exit
  18. :onError
  19. @echo An error occured!
  20. cd ..