boost安装

安装

https://blog.csdn.net/knowledgeaaa/article/details/80323743

brew install boost即可,需要用的文件夹为/usr/local/Cellar/boost/1.73.0/include/usr/local/Cellar/boost/1.73.0/lib(版本号可能不一样)

clion使用

CMakeLists.txt里面,加上:

1
2
3
include_directories(/usr/local/Cellar/boost/1.73.0/include)
link_directories(/usr/local/Cellar/boost/1.73.0/lib)
target_link_libraries(项目名 boost)