osx..script.sh 304 B

123456789101112131415161718
  1. #!/usr/bin/env bash
  2. mkdir build
  3. cd build
  4. if [ $QT5 ]; then
  5. # Workaround; No FindQt5.cmake module exists
  6. export CMAKE_PREFIX_PATH="$(brew --prefix qt5)"
  7. fi
  8. cmake -DCMAKE_INSTALL_PREFIX=../target/ $CMAKE_FLAGS -DUSE_WERROR=OFF ..
  9. make -j4
  10. make tests
  11. ./tests/tests
  12. make install
  13. make dmg