Skip to content

Commit

Permalink
Install COMMON_TEST_* executables to libexec
Browse files Browse the repository at this point in the history
Also install the test_lib_loader library since the
tests link against it.

Signed-off-by: Steve Peters <[email protected]>
  • Loading branch information
scpeters committed Dec 2, 2022
1 parent 42aec9e commit 049886a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/common_test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ set(tests
world_features
)

set(TEST_INSTALL_DIR ${CMAKE_INSTALL_LIBEXECDIR}/gz/${GZ_DESIGNATION}${PROJECT_VERSION_MAJOR}/)

function(configure_common_test PHYSICS_ENGINE_NAME test_name)
add_test(NAME ${test_name}_${PHYSICS_ENGINE_NAME}
COMMAND
Expand Down Expand Up @@ -45,6 +47,8 @@ foreach(test ${tests})
"GZ_PHYSICS_RESOURCE_DIR=\"${GZ_PHYSICS_RESOURCE_DIR}\""
)

install(TARGETS ${test_executable} DESTINATION ${TEST_INSTALL_DIR})

if (${BULLET_FOUND})
configure_common_test("bullet" ${test_executable})
configure_common_test("bullet-featherstone" ${test_executable})
Expand Down
1 change: 1 addition & 0 deletions test/helpers/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ target_link_libraries(${PROJECT_NAME}_test_lib_loader
${PROJECT_LIBRARY_TARGET_NAME}
gz-common${GZ_COMMON_VER}::gz-common${GZ_COMMON_VER}
)
install(TARGETS ${PROJECT_NAME}_test_lib_loader DESTINATION ${GZ_LIB_INSTALL_DIR})

0 comments on commit 049886a

Please sign in to comment.