您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

27 行
421B

  1. #!/bin/bash
  2. set -ex
  3. # Conan
  4. apt-get install -y python3-pip
  5. pip3 install -U 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