build.sh 588 B

12345678910111213141516171819202122232425
  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++
  10. g++ -O3 ../combination.cpp -o combination -std=c++20
  11. echo "开始运行"
  12. echo "--builder.cpp"
  13. ./builder
  14. echo "--CRTP.cpp"
  15. ./CRTP
  16. echo "--factory.cpp"
  17. ./factory
  18. echo "--signal.cpp"
  19. ./signal
  20. echo "--adapter.cpp"
  21. ./adapter
  22. echo "--bridge.cpp"
  23. ./bridge
  24. echo "--combination.cpp"
  25. ./combination