Merge branch '28-fix-tests-without-with_lttng' into 'master'
Resolve "Fix tests without WITH_LTTNG" Closes #28 See merge request micro-ROS/ros_tracing/ros2_tracing!59
This commit is contained in:
commit
5bc10cace2
4 changed files with 69 additions and 35 deletions
|
@ -91,9 +91,12 @@ if(BUILD_TESTING)
|
|||
find_package(ament_lint_auto REQUIRED)
|
||||
ament_lint_auto_find_test_dependencies()
|
||||
|
||||
ament_add_gtest(test_utils test/test_utils.cpp)
|
||||
if(TARGET test_utils)
|
||||
target_link_libraries(test_utils ${PROJECT_NAME} -rdynamic)
|
||||
# Only build tracetools utils tests if LTTng is enabled and found
|
||||
if(TRACETOOLS_LTTNG_ENABLED)
|
||||
ament_add_gtest(test_utils test/test_utils.cpp)
|
||||
if(TARGET test_utils)
|
||||
target_link_libraries(test_utils ${PROJECT_NAME} -rdynamic)
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue