Skip to content

Commit 93ae8c5

Browse files
Add the possibility to install bindings for System component (#1025)
1 parent 21c5201 commit 93ae8c5

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

bindings/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,13 @@ endif()
1313
if(FRAMEWORK_PYTHON_BINDINGS_BUILD_STANDALONE)
1414
cmake_minimum_required(VERSION 3.16)
1515
project(BipedalLocomotionFrameworkBindings)
16+
include(GNUInstallDirs)
1617
find_package(Python3 COMPONENTS Interpreter Development REQUIRED)
1718
find_package(pybind11 REQUIRED)
1819
find_package(BipedalLocomotionFramework REQUIRED)
1920
get_filename_component(CMAKE_CURRENT_PARENT_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR} DIRECTORY)
2021
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_PARENT_SOURCE_DIR}/cmake)
22+
include(AddBipedalLocomotionLibrary)
2123
include(AddBipedalLocomotionPythonModule)
2224
endif()
2325

bindings/python/System/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ if(TARGET BipedalLocomotion::System)
66

77
set(H_PREFIX include/BipedalLocomotion/bindings/System)
88

9+
add_bipedal_locomotion_library(
10+
NAME BindingsSystem
11+
IS_INTERFACE
12+
PUBLIC_HEADERS ${H_PREFIX}/Advanceable.h
13+
PUBLIC_LINK_LIBRARIES BipedalLocomotion::System
14+
INSTALLATION_FOLDER bindings/System)
15+
916
add_bipedal_locomotion_python_module(
1017
NAME SystemBindings
1118
SOURCES src/Advanceable.cpp src/VariablesHandler.cpp src/LinearTask.cpp src/Module.cpp src/ITaskControllerManager.cpp src/IClock.cpp src/Clock.cpp src/WeightProvider.cpp

0 commit comments

Comments
 (0)