From d32449ed4828a762f8e5b2b703a72a4d1a3f166d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joan=20Vallv=C3=A9=20Navarro?= <jvallve@iri.upc.edu> Date: Tue, 17 May 2022 18:39:53 +0200 Subject: [PATCH] trying to debug cmake find file --- CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 39fe54c..9d7b7b3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -56,8 +56,8 @@ if (falkolib_FOUND) target_sources(publisher_${PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/src/publisher_falko.cpp) endif() -find_file(ICP wolflaser_INCLUDE_DIRS laser/processor/processor_odom_icp.h) -if (NOT ICP_NOTFOUND) +find_file(ICP laser/processor/processor_odom_icp.h wolflaser_INCLUDE_DIRS) +if (NOT ICP) message("Found 'processor_odom_icp.h'. Compiling publisher_odom_icp.") target_sources(publisher_${PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/src/publisher_odom_icp.cpp) endif () @@ -66,6 +66,7 @@ endif () target_link_libraries(subscriber_${PROJECT_NAME} wolfcore wolflaser + ${catkin_LIBRARIES} ) target_link_libraries(publisher_${PROJECT_NAME} wolfcore -- GitLab