Skip to content

Commit

Permalink
Add yaml_cpp_vendor as dependency for master_node (#18)
Browse files Browse the repository at this point in the history
* commented out the yaml_cpp vendor since it doesnt let it build on the 20.04 machine

* Update CMakeLists.txt

* Update CMakeLists.txt

* Update CMakeLists.txt

Co-authored-by: Christoph Hellmann Santos <[email protected]>
  • Loading branch information
ipa-alb and hellantos authored Apr 29, 2022
1 parent f06987b commit 4458720
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions canopen_core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,13 @@ set (dependencies
canopen_interfaces
)

message(STATUS "${yaml_cpp_vendor_INCLUDE_DIRS}")
include_directories(${yaml_cpp_vendor_INCLUDE_DIRS})
add_library(configuration_manager
src/configuration_manager.cpp
)
target_compile_features(configuration_manager PUBLIC c_std_99 cxx_std_17) # Require C99 and C++17
target_include_directories(configuration_manager PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>
${yaml_cpp_vendor_INCLUDE_DIRS}
)
ament_target_dependencies(configuration_manager
rclcpp
Expand All @@ -74,6 +71,7 @@ ament_target_dependencies(
"rclcpp_components"
"canopen_interfaces"
"lely_core_libraries"
"yaml_cpp_vendor"
)
rclcpp_components_register_nodes(master_node "ros2_canopen::MasterNode")
set(node_plugins "${node_plugins}ros2_canopen::MasterNode;$<TARGET_FILE:master_node >\n")
Expand Down

0 comments on commit 4458720

Please sign in to comment.