Skip to content
Snippets Groups Projects
Commit 926d37da authored by Joan Vallvé Navarro's avatar Joan Vallvé Navarro
Browse files

destination of .so to /usr/local/lib

parent d2f8687c
No related branches found
No related tags found
2 merge requests!20new tag,!19new tag
Pipeline #7589 passed
......@@ -157,8 +157,8 @@ endif()
# Installing
INSTALL(TARGETS ${PROJECT_NAME}
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib/iri-algorithms
ARCHIVE DESTINATION lib/iri-algorithms)
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib)
INSTALL(DIRECTORY include/gnss_utils DESTINATION include/iri-algorithms)
INSTALL(FILES ${RTKLIB_SRC_DIR}/rtklib.h DESTINATION include/iri-algorithms/gnss_utils)
INSTALL(FILES Findgnss_utils.cmake DESTINATION ${CMAKE_ROOT}/Modules/)
......
FIND_PATH(
gnss_utils_INCLUDE_DIRS
NAMES gnss_utils.h
PATHS /usr/local/include/iri-algorithms/gnss_utils)
PATHS /usr/local/include/iri-algorithms/gnss_utils /usr/local/lib/iri-algorithms/gnss_utils)
#change INCLUDE_DIRS to its parent directory (to force includes with libname in front
get_filename_component(gnss_utils_INCLUDE_DIRS ${gnss_utils_INCLUDE_DIRS} DIRECTORY)
IF(gnss_utils_INCLUDE_DIRS)
......@@ -22,6 +22,8 @@ ENDIF(gnss_utils_LIBRARIES)
IF (gnss_utils_INCLUDE_DIRS AND gnss_utils_LIBRARIES)
SET(gnss_utils_FOUND TRUE)
SET(gnss_utils_INCLUDE_DIR ${gnss_utils_INCLUDE_DIRS})
SET(gnss_utils_LIBRARY ${gnss_utils_LIBRARIES})
ELSE(gnss_utils_INCLUDE_DIRS AND gnss_utils_LIBRARIES)
set(gnss_utils_FOUND FALSE)
ENDIF (gnss_utils_INCLUDE_DIRS AND gnss_utils_LIBRARIES)
......
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