1234567891011121314151617181920212223242526272829303132333435363738394041 |
- # 将本目录下的所有.c 文件添加到DIR_LIB_SRCS变量
- include_directories(${PCL_INCLUDE_DIRS})
- # FIND_PACKAGE(OpenCV REQUIRED)
- include_directories(${OpenCV_INCLUDE_DIRS})
- aux_source_directory(. LIB_TOOL)
- aux_source_directory(tool LIB_TOOL)
- aux_source_directory(error_code LIB_ERROR)
- aux_source_directory(TaskQueue LIB_TASK_QUEUE)
- aux_source_directory(verify LIB_VERIFY)
- # aux_source_directory(system LIB_SYSTEM)
- aux_source_directory(rabbitmq LIB_RABBITMQ)
- aux_source_directory(communication LIB_COMMUNICATION)
- # 生成静态库
- add_library(libtool
- ${LIB_TOOL}
- ${LIB_ERROR}
- ${LIB_TASK_QUEUE}
- ${LIB_VERIFY}
- ${LIB_SYSTEM}
- ${LIB_RABBITMQ}
- ${LIB_COMMUNICATION}
- )
- target_include_directories(libtool PUBLIC
- ${PCL_INCLUDE_DIRS}
- ${OpenCV_INCLUDE_DIRS}
- )
- target_link_libraries(libtool PUBLIC
- ${PCL_LIBRARIES}
- ${OpenCV_LIBRARIES}
- )
- # 安装库到安装路径
- INSTALL (TARGETS libtool DESTINATION lib)
- # 安装全部头文件到安装路径
- INSTALL (FILES
- ${ALL_HEAD}
- DESTINATION include/libtool
- )
|