Move find_package() lines to test section
This commit is contained in:
parent
ce9d6eff95
commit
3022d678f9
1 changed files with 4 additions and 3 deletions
|
@ -11,12 +11,13 @@ if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
|||
endif()
|
||||
|
||||
find_package(ament_cmake REQUIRED)
|
||||
find_package(rclcpp REQUIRED)
|
||||
find_package(std_msgs REQUIRED)
|
||||
find_package(std_srvs REQUIRED)
|
||||
|
||||
# Tests
|
||||
if(BUILD_TESTING)
|
||||
find_package(rclcpp REQUIRED)
|
||||
find_package(std_msgs REQUIRED)
|
||||
find_package(std_srvs REQUIRED)
|
||||
|
||||
add_executable(test_publisher
|
||||
src/test_publisher.cpp
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue