Skip to content

Commit

Permalink
Update tests/CMakeLists.txt
Browse files Browse the repository at this point in the history
Co-authored-by: Silvio Traversaro <[email protected]>
  • Loading branch information
martinaxgloria and traversaro authored Feb 6, 2025
1 parent a0ed8ea commit d68e063
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
find_package(GTest REQUIRED)
find_package(ICUB QUIET)
# Only if the GZ_SIM_YARP_PLUGINS_ENABLE_TESTS_WITH_ICUB_MAIN variable is not defined,
# we look for ICUB, to set its default value
if(NOT DEFINED GZ_SIM_YARP_PLUGINS_ENABLE_TESTS_WITH_ICUB_MAIN)
find_package(ICUB QUIET)
endif()
option(GZ_SIM_YARP_PLUGINS_ENABLE_TESTS_WITH_ICUB_MAIN "Enable tests that require the installation of the icub-main package" ICUB_FOUND)
if (GZ_SIM_YARP_PLUGINS_ENABLE_TESTS_WITH_ICUB_MAIN)
find_package(ICUB REQUIRED)
endif()

add_subdirectory(forcetorque)
add_subdirectory(imu)
Expand Down

0 comments on commit d68e063

Please sign in to comment.