move find_package call to testing code

This commit is contained in:
William Woodall 2015-12-16 15:41:33 -08:00
parent f35c06e27c
commit 64dc7ac220
2 changed files with 2 additions and 1 deletions

View file

@ -60,7 +60,6 @@ ament_export_include_directories(include)
ament_export_libraries(${PROJECT_NAME})
if(AMENT_ENABLE_TESTING)
find_package(ament_cmake_gtest REQUIRED)
find_package(ament_lint_auto REQUIRED)
ament_lint_auto_find_test_dependencies()

View file

@ -1,3 +1,5 @@
find_package(ament_cmake_gtest REQUIRED)
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