Skip to content

Commit

Permalink
find_package rostest only when necessary.
Browse files Browse the repository at this point in the history
  • Loading branch information
mmurooka committed Jul 20, 2023
1 parent f42c75f commit e20ee57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
find_package(rostest REQUIRED)

if(NOT DEFINED CATKIN_DEVEL_PREFIX)
find_package(GTest REQUIRED)
include(GoogleTest)
Expand Down Expand Up @@ -42,6 +40,8 @@ endforeach()

option(ENABLE_PYBULLET_TEST "Enable tests with pybullet simulation" OFF)
if(ENABLE_PYBULLET_TEST)
find_package(rostest REQUIRED)

set(CCC_rostest_list
TestSimDdpSingleRigidBody
)
Expand Down

0 comments on commit e20ee57

Please sign in to comment.