From 20710dd9044b95a4b8e45a937d92ac40081ceba2 Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Mon, 19 Jun 2023 17:53:17 +0200 Subject: [PATCH] Update CMakeLists.txt --- test/CMakeLists.txt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 6bec91102b7..2a16c217dee 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -30,7 +30,7 @@ macro(mujoco_test name) ) add_executable(${name} ${name}.cc) - target_link_libraries(${name} gtest_main mujoco) + target_link_libraries(${name} GTest::gtest_main mujoco) target_include_directories(${name} PRIVATE ${MUJOCO_TEST_INCLUDE}) set_target_properties(${name} PROPERTIES BUILD_RPATH ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}) # gtest_discover_tests is recommended over gtest_add_tests, but has some issues in Windows. @@ -59,20 +59,20 @@ target_link_libraries( PUBLIC absl::core_headers absl::strings absl::synchronization - gtest - gmock + GTest::gtest + GTest::gmock mujoco::mujoco ) target_include_directories(fixture PRIVATE ${mujoco_SOURCE_DIR}/include gmock) mujoco_test(fixture_test) -target_link_libraries(fixture_test fixture gmock) +target_link_libraries(fixture_test fixture GTest::gmock) mujoco_test(header_test) -target_link_libraries(header_test fixture gmock) +target_link_libraries(header_test fixture GTest::gmock) mujoco_test(pipeline_test) -target_link_libraries(pipeline_test fixture gmock) +target_link_libraries(pipeline_test fixture GTest::gmock) add_subdirectory(benchmark) add_subdirectory(engine)