build.sh 497 B

12345678910111213141516171819202122
  1. cd ./test/
  2. rm -rf *
  3. echo "开始构建"
  4. g++ -O3 ../CRTP.cpp -o CRTP -std=c++20
  5. g++ -O3 ../builder.cpp -o builder -std=c++20
  6. g++ -O3 ../factory.cpp -o factory -std=c++20
  7. g++ -O3 ../signal.cpp -o signal -std=c++20
  8. g++ -O3 ../adapter.cpp -o adapter -std=c++20
  9. g++ -O3 ../bridge.cpp -o bridge -std=c++20
  10. echo "开始运行"
  11. echo "--builder.cpp"
  12. ./builder
  13. echo "--CRTP.cpp"
  14. ./CRTP
  15. echo "--factory.cpp"
  16. ./factory
  17. echo "--signal.cpp"
  18. ./signal
  19. echo "--adapter.cpp"
  20. ./adapter
  21. echo "--bridge.cpp"
  22. ./bridge