You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 line
494B

  1. #!/bin/bash
  2. set -ex
  3. # Conan
  4. apt-get install -y python3-pip
  5. pip3 install conan
  6. conan profile new default --detect
  7. # Workaround for GCC 10 support (#168)
  8. cp -f script/settings.yml ~/.conan/
  9. if [[ "${CXX}" == clang* ]]
  10. then
  11. export CXXFLAGS="-stdlib=libc++"
  12. else
  13. conan profile update settings.compiler.libcxx=libstdc++11 default
  14. fi
  15. mkdir build && cd build
  16. conan install \
  17. -g cmake_find_package \
  18. -g cmake_paths \
  19. ..
  20. cmake -DCMAKE_BUILD_TYPE=Release ..
  21. make
  22. make unittest