From 22a7a9a6fd7249cd110a62e2eb33c525be04a4bb Mon Sep 17 00:00:00 2001 From: Jacob Perron Date: Mon, 20 May 2019 11:02:53 -0700 Subject: [PATCH] Include cmake extras for testing This ensures that the package dependencies are also included for add_launch_test(). Signed-off-by: Jacob Perron --- launch_testing_ament_cmake/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/launch_testing_ament_cmake/CMakeLists.txt b/launch_testing_ament_cmake/CMakeLists.txt index 84db10fb7..3bed67bcb 100644 --- a/launch_testing_ament_cmake/CMakeLists.txt +++ b/launch_testing_ament_cmake/CMakeLists.txt @@ -17,7 +17,9 @@ if(BUILD_TESTING) find_package(ament_cmake_pytest REQUIRED) ament_add_pytest_test(launch_testing_ament_cmake_pytests test) - include(cmake/add_launch_test.cmake) + # Include 'add_launch_test' and it's package dependencies + set(launch_testing_ament_cmake_DIR "${CMAKE_CURRENT_SOURCE_DIR}/cmake") + include(${PROJECT_NAME}-extras.cmake) ament_index_has_resource(LAUNCH_TESTING_INSTALL_PREFIX packages launch_testing) if(NOT LAUNCH_TESTING_INSTALL_PREFIX)