diff --git a/CMakeLists.txt b/CMakeLists.txt index efd09bd..15e3442 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -51,10 +51,25 @@ add_library(${PROJECT_NAME} SHARED "src/${PROJECT_NAME}/node/akushon_node.cpp" ) +add_library(${PROJECT_NAME}_exported SHARED +"src/${PROJECT_NAME}/action/model/action_name.cpp" +"src/${PROJECT_NAME}/action/model/action.cpp" +"src/${PROJECT_NAME}/action/model/pose.cpp" +"src/${PROJECT_NAME}/action/node/action_manager.cpp" +"src/${PROJECT_NAME}/action/node/action_node.cpp" +"src/${PROJECT_NAME}/action/process/interpolator.cpp" +"src/${PROJECT_NAME}/action/process/joint_process.cpp" +) + target_include_directories(${PROJECT_NAME} PUBLIC $ $) + +target_include_directories(${PROJECT_NAME}_exported PUBLIC +$ +$) + ament_target_dependencies(${PROJECT_NAME} ament_index_cpp akushon_interfaces @@ -65,6 +80,15 @@ ament_target_dependencies(${PROJECT_NAME} tachimawari_interfaces gRPC) + ament_target_dependencies(${PROJECT_NAME}_exported + ament_index_cpp + akushon_interfaces + rclcpp + rclcpp_action + std_msgs + tachimawari + tachimawari_interfaces) + target_link_libraries(${PROJECT_NAME} gRPC::grpc++_reflection gRPC::grpc++ @@ -79,6 +103,13 @@ install(TARGETS ${PROJECT_NAME} RUNTIME DESTINATION "bin" INCLUDES DESTINATION "include") + install(TARGETS ${PROJECT_NAME}_exported + EXPORT export_${PROJECT_NAME}_exported + ARCHIVE DESTINATION "lib" + LIBRARY DESTINATION "lib" + RUNTIME DESTINATION "bin" + INCLUDES DESTINATION "include") + target_compile_options(${PROJECT_NAME} PRIVATE -fPIC) add_executable(action "src/action_main.cpp") @@ -119,5 +150,5 @@ ament_export_dependencies( tachimawari tachimawari_interfaces) ament_export_include_directories("include") -ament_export_libraries(${PROJECT_NAME}) +ament_export_libraries(${PROJECT_NAME}_exported) ament_package()