diff --git a/rclcpp/CMakeLists.txt b/rclcpp/CMakeLists.txt
index 7190709..df45ff9 100644
--- a/rclcpp/CMakeLists.txt
+++ b/rclcpp/CMakeLists.txt
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.5)
project(rclcpp)
-find_package(ament_cmake REQUIRED)
+find_package(ament_cmake_ros REQUIRED)
find_package(builtin_interfaces REQUIRED)
find_package(rcl REQUIRED)
find_package(rcl_interfaces REQUIRED)
@@ -93,7 +93,7 @@ list(APPEND ${PROJECT_NAME}_SRCS
include/rclcpp/logging.hpp)
include_directories("${CMAKE_CURRENT_BINARY_DIR}/include")
-add_library(${PROJECT_NAME} SHARED
+add_library(${PROJECT_NAME}
${${PROJECT_NAME}_SRCS})
ament_target_dependencies(${PROJECT_NAME}
"builtin_interfaces"
diff --git a/rclcpp/package.xml b/rclcpp/package.xml
index db0b8a4..4b55dcc 100644
--- a/rclcpp/package.xml
+++ b/rclcpp/package.xml
@@ -7,7 +7,7 @@
Dirk Thomas
Apache License 2.0
- ament_cmake
+ ament_cmake_ros
rmw
diff --git a/rclcpp_lifecycle/CMakeLists.txt b/rclcpp_lifecycle/CMakeLists.txt
index 98a3db2..6d8de21 100644
--- a/rclcpp_lifecycle/CMakeLists.txt
+++ b/rclcpp_lifecycle/CMakeLists.txt
@@ -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
diff --git a/rclcpp_lifecycle/package.xml b/rclcpp_lifecycle/package.xml
index 028f49c..e1d0862 100644
--- a/rclcpp_lifecycle/package.xml
+++ b/rclcpp_lifecycle/package.xml
@@ -7,7 +7,7 @@
Karsten Knese
Apache License 2.0
- ament_cmake
+ ament_cmake_ros
rosidl_default_generators
rclcpp