-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update CMakeLists.txt in Commons test
Remove unnecessary dependencies and add GZ_SIM_SYSTEM_PLUGIN_PATH env variable
- Loading branch information
Showing
1 changed file
with
6 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,24 @@ | ||
add_executable(ConfigurationParsingTest ConfigurationParsingTest.cc) | ||
|
||
target_link_libraries(ConfigurationParsingTest | ||
PRIVATE | ||
gtest_main | ||
gz-sim${GZ_SIM_VER}::gz-sim${GZ_SIM_VER} | ||
gz-plugin${GZ_PLUGIN_VER}::gz-plugin${GZ_PLUGIN_VER} | ||
YARP::YARP_dev | ||
YARP::YARP_os | ||
YARP::YARP_init | ||
gz-sim-yarp-commons | ||
gz-sim-yarp-handler | ||
gz-sim-yarp-basestate-system | ||
gz-sim-yarp-camera-system | ||
gz-sim-yarp-controlboard-system | ||
gz-sim-yarp-forcetorque-system | ||
gz-sim-yarp-imu-system | ||
gz-sim-yarp-laser-system | ||
gz-sim-yarp-robotinterface-system | ||
) | ||
) | ||
|
||
add_test(NAME ConfigurationParsingTest COMMAND ConfigurationParsingTest) | ||
|
||
set(_env_vars) | ||
# list(APPEND _env_vars "GZ_SIM_SYSTEM_PLUGIN_PATH=$<TARGET_FILE_DIR:gz-sim-yarp-camera-system>") | ||
list(APPEND _env_vars "LIBGL_ALWAYS_SOFTWARE=1" "GZ_SIM_RESOURCE_PATH=${CMAKE_CURRENT_SOURCE_DIR}/..") | ||
list(APPEND _env_vars "LIBGL_ALWAYS_SOFTWARE=1" | ||
"GZ_SIM_SYSTEM_PLUGIN_PATH=$<TARGET_FILE_DIR:gz-sim-yarp-handler>" | ||
"GZ_SIM_RESOURCE_PATH=${CMAKE_CURRENT_SOURCE_DIR}/.." | ||
) | ||
|
||
set_tests_properties(ConfigurationParsingTest PROPERTIES | ||
ENVIRONMENT "${_env_vars}") |