Specify test working directory (#529)

Avert breakage from https://github.com/ament/ament_cmake/pull/206
Signed-off-by: Dan Rose <dan@digilabs.io>
This commit is contained in:
Dan Rose 2019-10-23 15:40:43 -05:00 committed by Dirk Thomas
parent 53e88d89c2
commit c1739354b1

View file

@ -55,6 +55,7 @@ if(BUILD_TESTING)
# Gtests # Gtests
ament_add_gtest(test_parse_yaml ament_add_gtest(test_parse_yaml
test/test_parse_yaml.cpp test/test_parse_yaml.cpp
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
) )
if(TARGET test_parse_yaml) if(TARGET test_parse_yaml)
target_link_libraries(test_parse_yaml ${PROJECT_NAME}) target_link_libraries(test_parse_yaml ${PROJECT_NAME})