Add the UME RobotArm and Damiao CAN-FD path, migrate the legacy UME controller, and introduce guarded cross-machine gRPC teleoperation with lifecycle, authority, configuration, and test coverage.
35 lines
918 B
CMake
35 lines
918 B
CMake
add_library(control_authority STATIC
|
|
src/control_authority_manager.cpp
|
|
)
|
|
target_compile_features(control_authority PUBLIC cxx_std_17)
|
|
target_include_directories(control_authority
|
|
PUBLIC
|
|
${PROJECT_SOURCE_DIR}/cmvr-es
|
|
)
|
|
|
|
add_library(
|
|
cmvr_es::control_authority
|
|
ALIAS control_authority
|
|
)
|
|
install(TARGETS control_authority ARCHIVE DESTINATION lib)
|
|
|
|
if(BUILD_TESTING)
|
|
add_executable(control_authority_manager_test
|
|
tests/control_authority_manager_test.cpp
|
|
)
|
|
target_link_libraries(control_authority_manager_test
|
|
PRIVATE
|
|
cmvr_es::control_authority
|
|
gtest
|
|
gtest_main
|
|
pthread
|
|
)
|
|
add_test(
|
|
NAME control_authority_manager_test
|
|
COMMAND control_authority_manager_test
|
|
)
|
|
set_tests_properties(control_authority_manager_test PROPERTIES
|
|
TIMEOUT 10
|
|
)
|
|
endif()
|