Skip to content

Commit

Permalink
Collapse BUILD_TESTING clauses
Browse files Browse the repository at this point in the history
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
  • Loading branch information
hidmic committed Mar 8, 2021
1 parent 62bbb5e commit 014e218
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions rosidl_adapter/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ find_package(ament_cmake_python REQUIRED)
ament_python_install_package(${PROJECT_NAME})

if(BUILD_TESTING)
find_package(ament_cmake_pytest REQUIRED)
find_package(ament_lint_auto REQUIRED)
ament_lint_auto_find_test_dependencies()
ament_add_pytest_test(pytest test)
endif()

ament_package(
Expand All @@ -25,8 +27,3 @@ install(PROGRAMS
scripts/msg2idl.py
scripts/srv2idl.py
DESTINATION lib/${PROJECT_NAME})

if(BUILD_TESTING)
find_package(ament_cmake_pytest REQUIRED)
ament_add_pytest_test(pytest test)
endif()

0 comments on commit 014e218

Please sign in to comment.