1. target_link_libraries
设置要连接库文件的名称
TARGET_LINK_LIBRARIES(main hello),连接libhello.so库
TARGET_LINK_LIBRARIES(main libhello.a libboost_filesystem.so libboost_system.so)
TARGET_LINK_LIBRARIES(main libhello.so)
***注意前面依赖顺序,前面依赖后面的库,如果有错显示,undefined reference to‘。。。’