Skip to content
Snippets Groups Projects
Commit 88fb0d1d authored by Joaquim Casals Buñuel's avatar Joaquim Casals Buñuel
Browse files

CMake fixes

parent a42a731b
No related branches found
No related tags found
No related merge requests found
#edit the following line to add the librarie's header files
FIND_PATH(
example_INCLUDE_DIRS
# NAMES wolf.found
PATHS /usr/local/include/iri-algorithms/wolf/example)
laser_INCLUDE_DIRS
NAMES laser.found
PATHS /usr/local/include/iri-algorithms/wolf/plugin_laser)
#change INCLUDE_DIRS to its parent directory
# get_filename_component(example_INCLUDE_DIRS ${example_INCLUDE_DIRS} DIRECTORY)
IF(example_INCLUDE_DIRS)
MESSAGE("Found example include dirs: ${example_INCLUDE_DIRS}")
# get_filename_component(laser_INCLUDE_DIRS ${example_INCLUDE_DIRS} DIRECTORY)
IF(laser_INCLUDE_DIRS)
MESSAGE("Found laser include dirs: ${laser_INCLUDE_DIRS}")
ELSE
MESSAGE("Couldn't find example include dirs")
MESSAGE("Couldn't find laser include dirs")
ENDIF
FIND_LIBRARY(
example_LIBRARY
NAMES libexample.so
laser_LIBRARY
NAMES libwolflaser.so
PATHS /usr/lib /usr/local/lib /usr/local/lib/iri-algorithms)
IF(example_LIBRARY)
MESSAGE("Found example lib: ${example_LIBRARY}")
IF(laser_LIBRARY)
MESSAGE("Found laser lib: ${laser_LIBRARY}")
ELSE
MESSAGE("Couldn't find example lib")
MESSAGE("Couldn't find laser lib")
ENDIF
IF (example_INCLUDE_DIRS AND example_LIBRARY)
SET(example_FOUND TRUE)
ENDIF (example_INCLUDE_DIRS AND example_LIBRARY)
IF (laser_INCLUDE_DIRS AND laser_LIBRARY)
SET(laser_FOUND TRUE)
ENDIF (laser_INCLUDE_DIRS AND laser_LIBRARY)
IF (example_FOUND)
IF (NOT example_FIND_QUIETLY)
MESSAGE(STATUS "Found example: ${example_LIBRARY}")
ENDIF (NOT example_FIND_QUIETLY)
ELSE (example_FOUND)
IF (laser_FOUND)
IF (NOT laser_FIND_QUIETLY)
MESSAGE(STATUS "Found laser: ${laser_LIBRARY}")
ENDIF (NOT laser_FIND_QUIETLY)
ELSE (laser_FOUND)
IF (wolf_FIND_REQUIRED)
MESSAGE(FATAL_ERROR "Could not find example")
MESSAGE(FATAL_ERROR "Could not find laser")
ENDIF (wolf_FIND_REQUIRED)
ENDIF (example_FOUND)
ENDIF (laser_FOUND)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment