cmake 3.10 compatibility: pass absolute path to file(GENERATE) function (#195)
* cmake 3.10 compatibility: pass absolute path to file(GENERATE) function * passing the right path to add_test is useful too
This commit is contained in:
parent
80e500b771
commit
d91af42f93
1 changed files with 2 additions and 2 deletions
|
@ -29,9 +29,9 @@ macro(rcl_add_custom_launch_test test_name executable1 executable2)
|
||||||
@ONLY
|
@ONLY
|
||||||
)
|
)
|
||||||
file(GENERATE
|
file(GENERATE
|
||||||
OUTPUT "test/${test_name}${target_suffix}_$<CONFIG>.py"
|
OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/test/${test_name}${target_suffix}_$<CONFIG>.py"
|
||||||
INPUT "${CMAKE_CURRENT_BINARY_DIR}/${test_name}${target_suffix}.py.configure"
|
INPUT "${CMAKE_CURRENT_BINARY_DIR}/${test_name}${target_suffix}.py.configure"
|
||||||
)
|
)
|
||||||
ament_add_pytest_test(${test_name}${target_suffix} "${CMAKE_CURRENT_BINARY_DIR}/${test_name}${target_suffix}_$<CONFIG>.py" ${ARGN})
|
ament_add_pytest_test(${test_name}${target_suffix} "${CMAKE_CURRENT_BINARY_DIR}/test/${test_name}${target_suffix}_$<CONFIG>.py" ${ARGN})
|
||||||
set_tests_properties(${test_name}${target_suffix} PROPERTIES DEPENDS "${executable1}${target_suffix} ${executable2}${target_suffix}")
|
set_tests_properties(${test_name}${target_suffix} PROPERTIES DEPENDS "${executable1}${target_suffix} ${executable2}${target_suffix}")
|
||||||
endmacro()
|
endmacro()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue