21 lines
603 B
CMake
21 lines
603 B
CMake
add_library(motor_bus_runtime SHARED
|
|
can/src/can_motor_bus_runtime.cpp
|
|
mujoco/src/mujoco_motor_bus_runtime.cpp
|
|
ethercat/src/ethercat_motor_bus_runtime.cpp
|
|
)
|
|
|
|
target_include_directories(motor_bus_runtime PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
|
|
|
target_link_libraries(motor_bus_runtime
|
|
PUBLIC
|
|
cmvr_es::proto
|
|
cmvr_es::device::motor_core
|
|
cmvr_es::mujoco_world
|
|
PRIVATE
|
|
cmvr_es::device::canbus
|
|
glog
|
|
)
|
|
|
|
add_library(cmvr_es::device::motor_bus_runtime ALIAS motor_bus_runtime)
|
|
install(TARGETS motor_bus_runtime LIBRARY DESTINATION lib)
|