Use ament_cmake_ros (#444)
* Control shared/static linking via BUILD_SHARED_LIBS * Remove rmw dependency * Add for rclcpp_lifecycle too * exec depend on ament_cmake is for normalize_path
This commit is contained in:
parent
0e79842b6b
commit
3786c91deb
4 changed files with 5 additions and 6 deletions
|
@ -10,7 +10,7 @@ if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
|||
add_compile_options(-Wall -Wextra -Wpedantic)
|
||||
endif()
|
||||
|
||||
find_package(ament_cmake REQUIRED)
|
||||
find_package(ament_cmake_ros REQUIRED)
|
||||
find_package(rclcpp REQUIRED)
|
||||
find_package(rcl_lifecycle REQUIRED)
|
||||
find_package(std_msgs REQUIRED)
|
||||
|
@ -20,7 +20,6 @@ include_directories(include)
|
|||
|
||||
### CPP High level library
|
||||
add_library(rclcpp_lifecycle
|
||||
SHARED
|
||||
src/lifecycle_node.cpp
|
||||
src/node_interfaces/lifecycle_node_interface.cpp
|
||||
src/state.cpp
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue