2014-07-30 17:57:21 -07:00
|
|
|
cmake_minimum_required(VERSION 2.8.3)
|
|
|
|
|
|
|
|
project(ros_dds_connext_dynamic)
|
|
|
|
|
|
|
|
find_package(ament_cmake REQUIRED)
|
|
|
|
find_package(ros_middleware_interface REQUIRED)
|
|
|
|
find_package(rosidl_generator_cpp REQUIRED)
|
|
|
|
|
|
|
|
find_package(ndds_cpp REQUIRED)
|
2014-08-07 14:38:38 -07:00
|
|
|
#set(CONNEXT_INCLUDE_DIRS ${ndds_cpp_INCLUDE_DIRS})
|
|
|
|
set(CONNEXT_INCLUDE_DIRS
|
|
|
|
"/home/dthomas/RTI/ndds.5.1.0/include/ndds"
|
|
|
|
"/home/dthomas/RTI/ndds.5.1.0/include"
|
|
|
|
)
|
|
|
|
#set(CONNEXT_LIBRARIES ${ndds_cpp_LIBRARIES})
|
|
|
|
set(CONNEXT_LIBRARIES
|
|
|
|
"/home/dthomas/RTI/ndds.5.1.0/lib/x64Linux2.6gcc4.4.5/libnddscppz.a"
|
|
|
|
"/home/dthomas/RTI/ndds.5.1.0/lib/x64Linux2.6gcc4.4.5/libnddscz.a"
|
|
|
|
"/home/dthomas/RTI/ndds.5.1.0/lib/x64Linux2.6gcc4.4.5/libnddscorez.a"
|
|
|
|
)
|
2014-07-30 17:57:21 -07:00
|
|
|
set(CONNEXT_DEFINITIONS ${ndds_cpp_DEFINITIONS})
|
|
|
|
|
2014-08-01 16:59:55 -07:00
|
|
|
|
2014-08-01 17:03:47 -07:00
|
|
|
find_package(ros_dds_cpp_dynamic_typesupport REQUIRED)
|
|
|
|
ament_export_dependencies(ros_dds_cpp_dynamic_typesupport)
|
|
|
|
include_directories(${ros_dds_cpp_dynamic_typesupport_INCLUDE_DIRS})
|
2014-08-01 16:59:55 -07:00
|
|
|
|
|
|
|
|
|
|
|
ament_export_dependencies(ros_middleware_interface rosidl_generator_cpp)
|
|
|
|
|
2014-07-30 17:57:21 -07:00
|
|
|
ament_export_libraries(ros_dds_connext_dynamic dl pthread)
|
|
|
|
|
|
|
|
ament_package()
|
|
|
|
|
2014-08-01 16:59:55 -07:00
|
|
|
include_directories(${ros_middleware_interface_INCLUDE_DIRS} ${rosidl_generator_cpp_INCLUDE_DIRS} ${CONNEXT_INCLUDE_DIRS})
|
2014-08-07 14:38:38 -07:00
|
|
|
link_directories("/home/dthomas/RTI/ndds.5.1.0/lib/x64Linux2.6gcc4.4.5")
|
2014-07-30 17:57:21 -07:00
|
|
|
add_definitions(${CONNEXT_DEFINITIONS})
|
|
|
|
add_library(ros_dds_connext_dynamic SHARED src/functions.cpp)
|
|
|
|
target_link_libraries(ros_dds_connext_dynamic ${std_msgs_LIBRARIES} ${CONNEXT_LIBRARIES})
|
|
|
|
|
|
|
|
install(
|
|
|
|
TARGETS ros_dds_connext_dynamic
|
|
|
|
LIBRARY DESTINATION lib
|
|
|
|
ARCHIVE DESTINATION lib
|
|
|
|
)
|