Skip to content

Commit

Permalink
Update CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
traversaro authored Jun 19, 2023
1 parent acbacb8 commit 20710dd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 20710dd

Please sign in to comment.