CmakeList--Boost/interprocess/message_queue

1、interprocess没有库文件,只用包含头文件就可以使用

2、但是message_queue需要librt.so库

set(RT_LIBRARIES /usr/lib/x86_64-linux-gnu/librt.so)

在target_link中包含即可

你可能感兴趣的:(常用库CmakeList编写,ubuntu)