From f82abfba2ce1e73a15b6f24dbd5313bfa8ca9d58 Mon Sep 17 00:00:00 2001 From: russel Date: Thu, 23 May 2019 10:41:13 -0700 Subject: [PATCH] Fix unit tests Without this include specification, the tests can't find `ros/package.h` --- test/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index f42bd54..7b69cf9 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -1,5 +1,9 @@ add_executable(test_web_server EXCLUDE_FROM_ALL test_web_server.cpp) target_link_libraries(test_web_server ${PROJECT_NAME} ${catkin_LIBRARIES}) +include_directories( + ${catkin_INCLUDE_DIRS} +) + if(TARGET tests) add_dependencies(tests