Skip to content
Snippets Groups Projects
Commit 121a2a5c authored by jvallve's avatar jvallve
Browse files

changes in cmake's

parent f7adce26
No related branches found
No related tags found
No related merge requests found
...@@ -2,13 +2,17 @@ ...@@ -2,13 +2,17 @@
FIND_PATH( FIND_PATH(
laser_scan_utils_INCLUDE_DIRS laser_scan_utils_INCLUDE_DIRS
NAMES laser_scan_utils.h NAMES laser_scan_utils.h
PATHS /usr/local/include/iri-algorithms PATHS /usr/local/include/iri-algorithms/laser_scan_utils)
) #change INCLUDE_DIRS to its parent directory
get_filename_component(laser_scan_utils_INCLUDE_DIRS ${laser_scan_utils_INCLUDE_DIRS} DIRECTORY)
MESSAGE(STATUS "laser_scan_utils_INCLUDE_DIRS: ${laser_scan_utils_INCLUDE_DIRS}")
FIND_LIBRARY( FIND_LIBRARY(
laser_scan_utils_LIBRARY laser_scan_utils_LIBRARY
NAMES laser_scan_utils NAMES laser_scan_utils
PATHS /usr/lib /usr/local/lib /usr/local/lib/iri-algorithms) PATHS /usr/lib /usr/local/lib /usr/local/lib/iri-algorithms)
MESSAGE(STATUS "laser_scan_utils_LIBRARY: ${laser_scan_utils_LIBRARY}")
IF (laser_scan_utils_INCLUDE_DIRS AND laser_scan_utils_LIBRARY) IF (laser_scan_utils_INCLUDE_DIRS AND laser_scan_utils_LIBRARY)
SET(laser_scan_utils_FOUND TRUE) SET(laser_scan_utils_FOUND TRUE)
......
...@@ -51,7 +51,7 @@ INSTALL(TARGETS ${PROJECT_NAME} ...@@ -51,7 +51,7 @@ INSTALL(TARGETS ${PROJECT_NAME}
#install headers #install headers
INSTALL(FILES ${HDRS_BASE} INSTALL(FILES ${HDRS_BASE}
DESTINATION include/iri-algorithms) DESTINATION include/iri-algorithms/laser_scan_utils)
INSTALL(FILES ${HDRS} INSTALL(FILES ${HDRS}
DESTINATION include/iri-algorithms/laser_scan_utils) DESTINATION include/iri-algorithms/laser_scan_utils)
......
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