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

Renamed _INCLUDE_DIR -> _INCLUDE_DIRS & _LIBRARY -> _LIBRARIES

parent 427b9433
No related branches found
No related tags found
2 merge requests!30Release after RAL,!29After 2nd RAL submission
#edit the following line to add the librarie's header files #edit the following line to add the librarie's header files
FIND_PATH( FIND_PATH(
wolflaser_INCLUDE_DIR wolflaser_INCLUDE_DIRS
NAMES laser.found NAMES laser.found
PATHS /usr/local/include/iri-algorithms/wolf/plugin_laser) PATHS /usr/local/include/iri-algorithms/wolf/plugin_laser)
IF(wolflaser_INCLUDE_DIR) IF(wolflaser_INCLUDE_DIRS)
MESSAGE("Found laser include dirs: ${wolflaser_INCLUDE_DIR}") MESSAGE("Found laser include dirs: ${wolflaser_INCLUDE_DIRS}")
ELSE(wolflaser_INCLUDE_DIR) ELSE(wolflaser_INCLUDE_DIRS)
MESSAGE("Couldn't find laser include dirs") MESSAGE("Couldn't find laser include dirs")
ENDIF(wolflaser_INCLUDE_DIR) ENDIF(wolflaser_INCLUDE_DIRS)
FIND_LIBRARY( FIND_LIBRARY(
wolflaser_LIBRARY wolflaser_LIBRARIES
NAMES libwolflaser.so NAMES libwolflaser.so
PATHS /usr/local/lib/iri-algorithms) PATHS /usr/local/lib/iri-algorithms)
IF(wolflaser_LIBRARY) IF(wolflaser_LIBRARIES)
MESSAGE("Found laser lib: ${wolflaser_LIBRARY}") MESSAGE("Found laser lib: ${wolflaser_LIBRARIES}")
ELSE(wolflaser_LIBRARY) ELSE(wolflaser_LIBRARIES)
MESSAGE("Couldn't find wolf laser lib") MESSAGE("Couldn't find wolf laser lib")
ENDIF(wolflaser_LIBRARY) ENDIF(wolflaser_LIBRARIES)
IF (wolflaser_INCLUDE_DIR AND wolflaser_LIBRARY) IF (wolflaser_INCLUDE_DIRS AND wolflaser_LIBRARIES)
SET(wolflaser_FOUND TRUE) SET(wolflaser_FOUND TRUE)
ELSE(wolflaser_INCLUDE_DIR AND wolflaser_LIBRARY) ELSE(wolflaser_INCLUDE_DIRS AND wolflaser_LIBRARIES)
set(wolflaser_FOUND FALSE) set(wolflaser_FOUND FALSE)
ENDIF (wolflaser_INCLUDE_DIR AND wolflaser_LIBRARY) ENDIF (wolflaser_INCLUDE_DIRS AND wolflaser_LIBRARIES)
IF (wolflaser_FOUND) IF (wolflaser_FOUND)
IF (NOT wolflaser_FIND_QUIETLY) IF (NOT wolflaser_FIND_QUIETLY)
MESSAGE(STATUS "Found laser: ${wolflaser_LIBRARY}") MESSAGE(STATUS "Found laser: ${wolflaser_LIBRARIES}")
ENDIF (NOT wolflaser_FIND_QUIETLY) ENDIF (NOT wolflaser_FIND_QUIETLY)
ELSE (wolflaser_FOUND) ELSE (wolflaser_FOUND)
IF (wolflaser_FIND_REQUIRED) IF (wolflaser_FIND_REQUIRED)
...@@ -38,7 +38,7 @@ ENDIF (wolflaser_FOUND) ...@@ -38,7 +38,7 @@ ENDIF (wolflaser_FOUND)
macro(wolf_report_not_found REASON_MSG) macro(wolf_report_not_found REASON_MSG)
set(wolflaser_FOUND FALSE) set(wolflaser_FOUND FALSE)
unset(wolflaser_INCLUDE_DIR) unset(wolflaser_INCLUDE_DIRS)
unset(wolflaser_LIBRARIES) unset(wolflaser_LIBRARIES)
# Reset the CMake module path to its state when this script was called. # Reset the CMake module path to its state when this script was called.
......
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