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 lines
382B

  1. #!/bin/bash
  2. set -ex
  3. # Conan
  4. apt-get install -y python3-pip
  5. pip3 install conan
  6. if [[ "${CXX}" == clang* ]]
  7. then
  8. export CXXFLAGS="-stdlib=libc++"
  9. CONAN_STDLIB=libc++
  10. else
  11. CONAN_STDLIB=libstdc++11
  12. fi
  13. mkdir build && cd build
  14. conan install \
  15. -s compiler.libcxx=${CONAN_STDLIB} \
  16. -g cmake_find_package \
  17. -g cmake_paths \
  18. ..
  19. cmake ..
  20. make
  21. make unittest