remove extra enable testing check

This commit is contained in:
William Woodall 2015-12-16 15:02:45 -08:00
parent 7bceed4071
commit b92148d75f

View file

@ -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()