Skip to content
Snippets Groups Projects
Commit 351393ba authored by Sergi Hernandez's avatar Sergi Hernandez
Browse files

Added the actual cmake find files.

parent ee44ff3d
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(robotis_bin_parser_INCLUDE_DIR robotis_bin_parser.h /usr/include/iridrivers /usr/local/include/iridrivers)
FIND_LIBRARY(robotis_bin_parser_LIBRARY
NAMES robotis_bin_parser
PATHS /usr/lib /usr/local/lib /usr/local/lib/iridrivers)
IF (robotis_bin_parser_INCLUDE_DIR AND robotis_bin_parser_LIBRARY)
SET(robotis_bin_parser_FOUND TRUE)
ENDIF (robotis_bin_parser_INCLUDE_DIR AND robotis_bin_parser_LIBRARY)
IF (robotis_bin_parser_FOUND)
IF (NOT robotis_bin_parser_FIND_QUIETLY)
MESSAGE(STATUS "Found robotis_bin_parser: ${robotis_bin_parser_LIBRARY}")
ENDIF (NOT robotis_bin_parser_FIND_QUIETLY)
ELSE (robotis_bin_parser_FOUND)
IF (robotis_bin_parser_FIND_REQUIRED)
MESSAGE(FATAL_ERROR "Could not find robotis_bin_parser")
ENDIF (robotis_bin_parser_FIND_REQUIRED)
ENDIF (robotis_bin_parser_FOUND)
#edit the following line to add the librarie's header files
FIND_PATH(robotis_mtn_INCLUDE_DIR robotis_mtn.h robotis_page.h robotis_step.h /usr/include/iridrivers /usr/local/include/iridrivers)
FIND_LIBRARY(robotis_mtn_LIBRARY
NAMES robotis_mtn
PATHS /usr/lib /usr/local/lib /usr/local/lib/iridrivers)
IF (robotis_mtn_INCLUDE_DIR AND robotis_mtn_LIBRARY)
SET(robotis_mtn_FOUND TRUE)
ENDIF (robotis_mtn_INCLUDE_DIR AND robotis_mtn_LIBRARY)
IF (robotis_mtn_FOUND)
IF (NOT robotis_mtn_FIND_QUIETLY)
MESSAGE(STATUS "Found robotis_mtn: ${robotis_mtn_LIBRARY}")
ENDIF (NOT robotis_mtn_FIND_QUIETLY)
ELSE (robotis_mtn_FOUND)
IF (robotis_mtn_FIND_REQUIRED)
MESSAGE(FATAL_ERROR "Could not find robotis_mtn")
ENDIF (robotis_mtn_FIND_REQUIRED)
ENDIF (robotis_mtn_FOUND)
#edit the following line to add the librarie's header files
FIND_PATH(robotis_mtn_parser_INCLUDE_DIR mtn_file_parser.hpp mtn_file_scanner.hpp /usr/include/iridrivers /usr/local/include/iridrivers)
FIND_LIBRARY(robotis_mtn_parser_LIBRARY
NAMES robotis_mtn_parser
PATHS /usr/lib /usr/local/lib /usr/local/lib/iridrivers)
IF (robotis_mtn_parser_INCLUDE_DIR AND robotis_mtn_parser_LIBRARY)
SET(robotis_mtn_parser_FOUND TRUE)
ENDIF (robotis_mtn_parser_INCLUDE_DIR AND robotis_mtn_parser_LIBRARY)
IF (robotis_mtn_parser_FOUND)
IF (NOT robotis_mtn_parser_FIND_QUIETLY)
MESSAGE(STATUS "Found robotis_mtn_parser: ${robotis_mtn_parser_LIBRARY}")
ENDIF (NOT robotis_mtn_parser_FIND_QUIETLY)
ELSE (robotis_mtn_parser_FOUND)
IF (robotis_mtn_parser_FIND_REQUIRED)
MESSAGE(FATAL_ERROR "Could not find robotis_mtn_parser")
ENDIF (robotis_mtn_parser_FIND_REQUIRED)
ENDIF (robotis_mtn_parser_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