Fix LSP server

Add buult binary to install location
This commit is contained in:
Bastian Hofmann 2022-12-07 10:06:46 +00:00
parent 36c235b781
commit 42e03ac848

View File

@ -1,4 +1,8 @@
cmake_minimum_required(VERSION 3.10.2 FATAL_ERROR)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
project(ign_actor_plugin)
find_package(rclcpp REQUIRED)
@ -22,6 +26,7 @@ ament_export_dependencies(ActorPlugin
add_library(ActorPlugin SHARED src/ActorSystem.cpp)
ament_target_dependencies(ActorPlugin rclcpp rclcpp_action ign_actor_plugin_msgs)
set_property(TARGET ActorPlugin PROPERTY CXX_STANDARD 17)
target_compile_options(ActorPlugin PRIVATE -std=c++17)
target_link_libraries(ActorPlugin
ignition-gazebo6::ignition-gazebo6
@ -30,4 +35,8 @@ target_link_libraries(ActorPlugin
${rclcpp_action_LIBRARIES}
)
install(TARGETS
ActorPlugin
DESTINATION lib/${PROJECT_NAME})
ament_package()