Move find_package() lines to test section

This commit is contained in:
Christophe Bedard 2019-06-04 13:51:56 +02:00
parent ce9d6eff95
commit 3022d678f9

View file

@ -11,12 +11,13 @@ if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
endif() endif()
find_package(ament_cmake REQUIRED) find_package(ament_cmake REQUIRED)
find_package(rclcpp REQUIRED)
find_package(std_msgs REQUIRED)
find_package(std_srvs REQUIRED)
# Tests # Tests
if(BUILD_TESTING) if(BUILD_TESTING)
find_package(rclcpp REQUIRED)
find_package(std_msgs REQUIRED)
find_package(std_srvs REQUIRED)
add_executable(test_publisher add_executable(test_publisher
src/test_publisher.cpp src/test_publisher.cpp
) )