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

cmake-things for installing

parent da19bb06
No related branches found
No related tags found
2 merge requests!20new tag,!19new tag
......@@ -8,7 +8,7 @@ if(COMMAND cmake_policy)
endif(COMMAND cmake_policy)
# The project name and the type of project
PROJECT(gnss-utils)
PROJECT(gnss_utils)
SET(EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_SOURCE_DIR}/bin)
SET(LIBRARY_OUTPUT_PATH ${CMAKE_CURRENT_SOURCE_DIR}/lib)
......
FIND_PATH(
gnss_utils_INCLUDE_DIRS
PATHS /usr/local/include/gnss_utils)
NAMES gnss_utils.h
PATHS /usr/local/include/iri-algorithms/gnss_utils)
IF(gnss_utils_INCLUDE_DIRS)
MESSAGE("Found gnss_utils include dirs: ${gnss_utils_INCLUDE_DIRS}")
ELSE(gnss_utils_INCLUDE_DIRS)
......
......@@ -50,11 +50,11 @@ ADD_LIBRARY(gnss_utils SHARED ${SOURCES} ${RTKLIB_SRC})
TARGET_LINK_LIBRARIES(gnss_utils ${Boost_LIBRARIES})
# Installing
INSTALL(TARGETS gnss_utils
RUNTIME DESTINATION bin
LIBRARY DESTINATION /usr/local/lib
ARCHIVE DESTINATION lib)
INSTALL(FILES ${HEADERS} DESTINATION include/gnss_utils)
# INSTALL(FILES ../gnss_utils.cmake DESTINATION ${CMAKE_ROOT}/Modules/)
INSTALL(FILES ../Findgnss_utils.cmake DESTINATION lib/cmake/${PROJECT_NAME})
INSTALL(TARGETS ${PROJECT_NAME}
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib/iri-algorithms
ARCHIVE DESTINATION lib/iri-algorithms)
INSTALL(FILES ${HEADERS} DESTINATION include/iri-algorithms/gnss_utils)
INSTALL(FILES ../Findgnss_utils.cmake DESTINATION ${CMAKE_ROOT}/Modules/)
ADD_SUBDIRECTORY(examples)
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