Skip to content

Commit

Permalink
Make libraries shared
Browse files Browse the repository at this point in the history
Signed-off-by: methylDragon <[email protected]>
  • Loading branch information
methylDragon committed Sep 11, 2024
1 parent 330df34 commit 68e4268
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions moveit_ros/trajectory_cache/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ set(TRAJECTORY_CACHE_LIBRARIES
moveit_ros_trajectory_cache_lib)

# Utils library
add_library(moveit_ros_trajectory_cache_utils_lib src/utils/utils.cpp)
add_library(moveit_ros_trajectory_cache_utils_lib SHARED src/utils/utils.cpp)
generate_export_header(moveit_ros_trajectory_cache_utils_lib)
target_include_directories(
moveit_ros_trajectory_cache_utils_lib
Expand All @@ -46,7 +46,7 @@ ament_target_dependencies(moveit_ros_trajectory_cache_utils_lib

# Features library
add_library(
moveit_ros_trajectory_cache_features_lib
moveit_ros_trajectory_cache_features_lib SHARED
src/features/motion_plan_request_features.cpp
src/features/get_cartesian_path_request_features.cpp)
generate_export_header(moveit_ros_trajectory_cache_features_lib)
Expand All @@ -61,7 +61,7 @@ ament_target_dependencies(moveit_ros_trajectory_cache_features_lib

# Cache insert policies library
add_library(
moveit_ros_trajectory_cache_cache_insert_policies_lib
moveit_ros_trajectory_cache_cache_insert_policies_lib SHARED
src/cache_insert_policies/always_insert_never_prune_policy.cpp
src/cache_insert_policies/best_seen_execution_time_policy.cpp)
generate_export_header(moveit_ros_trajectory_cache_cache_insert_policies_lib)
Expand Down
4 changes: 2 additions & 2 deletions moveit_ros/trajectory_cache/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ if(BUILD_TESTING)
find_package(warehouse_ros_sqlite REQUIRED)

# Fixtures.
add_library(warehouse_fixture fixtures/warehouse_fixture.cpp)
add_library(warehouse_fixture SHARED fixtures/warehouse_fixture.cpp)
target_include_directories(
warehouse_fixture PUBLIC $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>)
ament_target_dependencies(warehouse_fixture ${TRAJECTORY_CACHE_DEPENDENCIES}
ament_cmake_gtest warehouse_ros_sqlite)

add_library(move_group_fixture fixtures/move_group_fixture.cpp)
add_library(move_group_fixture SHARED fixtures/move_group_fixture.cpp)
target_include_directories(
move_group_fixture PUBLIC $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>)
ament_target_dependencies(move_group_fixture ${TRAJECTORY_CACHE_DEPENDENCIES}
Expand Down

0 comments on commit 68e4268

Please sign in to comment.