Use rosdep (#32)

* Add Cyclone DDS build dependencies for rosdep

* Update README.md

Change apt install commands to rosdep install.

* build_depend -> buildtool_depend for maven and java

* Add vendor package to build cyclonedds from source

Remove maven and java dependency (thanks, @eboasson)

* remove --symlink-build flag

this obscures the intention of the code and sophisticated users can choose whether to use it or not.

* add rosdep to readme
This commit is contained in:
Dan Rose 2019-09-13 04:54:06 -05:00 committed by eboasson
parent 883ef01105
commit 3edf332573
6 changed files with 49 additions and 11 deletions

View file

@ -16,6 +16,8 @@ cmake_minimum_required(VERSION 3.5)
project(rmw_cyclonedds_cpp)
set(CYCLONEDDS_FROM_SOURCE CACHE BOOL "Should we download and build cycloneDDS from source?")
link_directories(/usr/local/lib)
# Default to C++14
@ -31,7 +33,13 @@ find_package(ament_cmake_ros REQUIRED)
find_package(rcutils REQUIRED)
find_package(cyclonedds_cmake_module REQUIRED)
if (CYCLONEDDS_FROM_SOURCE)
message("Building CycloneDDS from source")
find_package(cyclonedds_vendor REQUIRED)
else()
find_package(cyclonedds_cmake_module REQUIRED)
message("Using installed CycloneDDS")
endif()
find_package(CycloneDDS REQUIRED CONFIG)
find_package(rmw REQUIRED)

View file

@ -14,6 +14,8 @@
<build_depend>cyclonedds</build_depend>
<build_depend>cyclonedds_cmake_module</build_depend>
<build_depend>cyclonedds_vendor</build_depend>
<build_depend>rcutils</build_depend>
<build_depend>rmw</build_depend>
<build_depend>rosidl_generator_c</build_depend>