Skip to content

Commit

Permalink
Install libNatNet.so only on x64 Linux
Browse files Browse the repository at this point in the history
* Should fix ROS 2 build farm errors.
  • Loading branch information
whoenig committed Mar 9, 2024
1 parent 7bee02b commit 30964b3
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions motion_capture_tracking/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,13 @@ target_compile_features(motion_capture_tracking_node PUBLIC c_std_99 cxx_std_17)
install(TARGETS motion_capture_tracking_node
DESTINATION lib/${PROJECT_NAME})

install(FILES
${CMAKE_CURRENT_SOURCE_DIR}/deps/libmotioncapture/deps/NatNetSDKCrossplatform/lib/ubuntu/libNatNet.so
DESTINATION lib/${PROJECT_NAME}
)
# The precompiled libNatNet library is only available for x64 Linux
if ((CMAKE_SYSTEM_NAME STREQUAL "Linux") AND (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64"))
install(FILES
${CMAKE_CURRENT_SOURCE_DIR}/deps/libmotioncapture/deps/NatNetSDKCrossplatform/lib/ubuntu/libNatNet.so
DESTINATION lib/${PROJECT_NAME}
)
endif()

# if(BUILD_TESTING)
# find_package(ament_lint_auto REQUIRED)
Expand Down

0 comments on commit 30964b3

Please sign in to comment.