remove extra enable testing check
This commit is contained in:
parent
7bceed4071
commit
b92148d75f
1 changed files with 96 additions and 86 deletions
|
@ -1,4 +1,3 @@
|
|||
if(AMENT_ENABLE_TESTING)
|
||||
set(extra_test_libraries)
|
||||
set(extra_memory_tools_env PHONY=) # Use a phony env var so there is always at least one.
|
||||
ament_find_gtest() # For GTEST_LIBRARIES
|
||||
|
@ -91,4 +90,15 @@ if(AMENT_ENABLE_TESTING)
|
|||
endif()
|
||||
target_link_libraries(test_rcl ${PROJECT_NAME} ${extra_test_libraries})
|
||||
endif()
|
||||
|
||||
ament_add_gtest(test_node rcl/test_node.cpp ENV ${extra_memory_tools_env})
|
||||
if(TARGET test_node)
|
||||
target_include_directories(test_node PUBLIC
|
||||
${rcl_interfaces_INCLUDE_DIRS}
|
||||
${rmw_INCLUDE_DIRS}
|
||||
)
|
||||
if(NOT WIN32)
|
||||
set_target_properties(test_node PROPERTIES COMPILE_FLAGS "-std=c++11")
|
||||
endif()
|
||||
target_link_libraries(test_node ${PROJECT_NAME} ${extra_test_libraries})
|
||||
endif()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue