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:
parent
883ef01105
commit
3edf332573
6 changed files with 49 additions and 11 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue