Commit 22aae26b authored by Joan Vallvé Navarro's avatar Joan Vallvé Navarro
Browse files

finally solved

parent 9103930b
...@@ -43,36 +43,23 @@ add_library(subscriber_${PROJECT_NAME} ...@@ -43,36 +43,23 @@ add_library(subscriber_${PROJECT_NAME}
${CMAKE_CURRENT_SOURCE_DIR}/src/subscriber_laser2d.cpp ${CMAKE_CURRENT_SOURCE_DIR}/src/subscriber_laser2d.cpp
) )
get_target_property(wolflaser_INCLUDE_DIRS wolflaser INTERFACE_INCLUDE_DIRECTORIES) get_target_property(wolflaser_INCLUDE_DIR wolflaser INTERFACE_INCLUDE_DIRECTORIES)
message("wolflaser_INCLUDE_DIRS: ${wolflaser_INCLUDE_DIRS}") message("wolflaser_INCLUDE_DIRS: ${wolflaser_INCLUDE_DIRS}")
find_file(FALKO processor_loop_cosure_falko.h PATHS wolflaser_INCLUDE_DIRS PATH_SUFFIXES laser/processor /laser/processor laser/processor/ /laser/processor/ NO_DEFAULT_PATH) find_file(FALKO laser/processor/processor_loop_closure_falko.h PATHS ${wolflaser_INCLUDE_DIR})
find_file(ICP laser/processor/processor_odom_icp.h PATHS wolflaser_INCLUDE_DIRS NO_DEFAULT_PATH) find_file(ICP laser/processor/processor_odom_icp.h PATHS ${wolflaser_INCLUDE_DIR})
message("FALKO: ${FALKO}")
if (NOT FALKO-NOTFOUND)
message("NOT FALKO-NOTFOUND")
else()
message("FALKO-NOTFOUND")
endif()
message("ICP: ${ICP}")
if (NOT ICP-NOTFOUND)
message("NOT ICP-NOTFOUND")
else()
message("ICP-NOTFOUND")
endif()
if (FALKO) if (FALKO)
message("Found 'processor_loop_cosure_falko.h'. Compiling publisher_falko.") message("Found 'laser/processor/processor_loop_closure_falko.h'. Compiling publisher_falko.")
target_sources(publisher_${PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/src/publisher_falko.cpp) target_sources(publisher_${PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/src/publisher_falko.cpp)
else() else()
message("Didn't find 'processor_loop_cosure_falko.h'. Not compiling publisher_falko.") message("Didn't find 'laser/processor/processor_loop_closure_falko.h'. Not compiling publisher_falko.")
endif() endif()
if (ICP) if (ICP)
message("Found 'processor_odom_icp.h'. Compiling publisher_odom_icp.") message("Found 'laser/processor/processor_odom_icp.h'. Compiling publisher_odom_icp.")
target_sources(publisher_${PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/src/publisher_odom_icp.cpp) target_sources(publisher_${PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/src/publisher_odom_icp.cpp)
else() else()
message("Didn't find 'processor_odom_icp.h'. Not compiling publisher_odom_icp.") message("Didn't find 'laser/processor/processor_odom_icp.h'. Not compiling publisher_odom_icp.")
endif () endif ()
## Specify libraries to link a library or executable target against ## Specify libraries to link a library or executable target against
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment