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.

28 lines
393B

  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 --build missing \
  15. -s compiler.libcxx=${CONAN_STDLIB} \
  16. -g cmake_find_package cmake_find_paths \
  17. ..
  18. cmake ..
  19. make
  20. make unittest