From b81676f1a9dc26ac3c63b27457ad81f0e56edf2f Mon Sep 17 00:00:00 2001 From: Giulio Romualdi Date: Fri, 18 Nov 2022 18:55:15 +0100 Subject: [PATCH] Add the possibility to use ROS2 --- cmake/BipedalLocomotionFrameworkDependencies.cmake | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cmake/BipedalLocomotionFrameworkDependencies.cmake b/cmake/BipedalLocomotionFrameworkDependencies.cmake index 2ac17f9fff..cdd17b46ef 100644 --- a/cmake/BipedalLocomotionFrameworkDependencies.cmake +++ b/cmake/BipedalLocomotionFrameworkDependencies.cmake @@ -19,6 +19,10 @@ dependency_classifier(spdlog MINIMUM_VERSION 1.5.0 IS_USED TRUE PUBLIC) ########################## Optional dependencies ############################## +find_package(rclcpp 16.0.0 QUIET) +checkandset_dependency(rclcpp MINIMUM_VERSION 16.0.0) +dependency_classifier(rclcpp MINIMUM_VERSION 16.0.0 IS_USED ${FRAMEWORK_USE_rclcpp} PUBLIC) + find_package(YARP 3.7.0 COMPONENTS companion profiler dev os idl_tools QUIET) checkandset_dependency(YARP MINIMUM_VERSION 3.7.0) dependency_classifier(YARP MINIMUM_VERSION 3.7.0 IS_USED ${FRAMEWORK_USE_YARP} @@ -108,6 +112,10 @@ framework_dependent_option(FRAMEWORK_COMPILE_YarpUtilities "Compile YarpHelper library?" ON "FRAMEWORK_USE_YARP" OFF) +framework_dependent_option(FRAMEWORK_COMPILE_RosImplementation + "Compile All the ROS implementations?" ON + "FRAMEWORK_USE_rclcpp" OFF) + framework_dependent_option(FRAMEWORK_COMPILE_YarpImplementation "Compile All the YARP implementations?" ON "FRAMEWORK_COMPILE_YarpUtilities" OFF)