//生成.so文件
add_library(${PROJECT_NAME}
src/filter_utils.cpp
)
//指定路径
set(PATH /home/lst/Desktop/)
set_target_properties(${PROJECT_NAME} PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${PATH})
${PROJECT_SOURCE_DIR} // "/home/lst/Desktop/workspace/temp_ground/src/cloud_utils"
message(${PROJECT_BINARY_DIR})
message(${PROJECT_SOURCE_DIR})
message(${fusion_sync_SOURCE_DIR}) //指定节点路径
/home/lst/Desktop/workspace/temp_ground/build/cloud_utils
/home/lst/Desktop/workspace/temp_ground/src/cloud_utils
/home/lst/Desktop/workspace/temp_ground/src/fusion_sync
//工程引用
target_link_libraries(ground_fine_node ${PROJECT_SOURCE_DIR}/lib/libcloud_utils.so
${catkin_LIBRARIES}
${OpenCV_LIBS}
)
生成SO指定存储路径
最新推荐文章于 2024-04-07 15:25:52 发布