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.

7 年之前
1234567891011121314151617181920212223242526
  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. if [[ "${CXX}" == clang* ]]
  8. then
  9. export CXXFLAGS="-stdlib=libc++"
  10. else
  11. conan profile update settings.compiler.libcxx=libstdc++11 default
  12. fi
  13. mkdir build && cd build
  14. conan install \
  15. -g cmake_find_package \
  16. -g cmake_paths \
  17. ..
  18. cmake -DCMAKE_BUILD_TYPE=Release ..
  19. make
  20. make unittest