Skip to content
Snippets Groups Projects
Commit 15fd4cc9 authored by Mederic Fourmy's avatar Mederic Fourmy
Browse files

[skip-ci] remove iri-algorithms and minor things

parent 7feb4914
No related branches found
No related tags found
2 merge requests!26cmake fixes,!24Resolve "cmake: remove iri-algorithms from include install path"
Pipeline #11248 skipped
......@@ -12,7 +12,7 @@ PROJECT(gnss_utils)
SET(EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_SOURCE_DIR}/bin)
SET(LIBRARY_OUTPUT_PATH ${CMAKE_CURRENT_SOURCE_DIR}/lib)
set(INCLUDE_INSTALL_DIR include/iri-algorithms)
set(INCLUDE_INSTALL_DIR include)
set(LIB_INSTALL_DIR lib/)
IF (NOT CMAKE_BUILD_TYPE)
......@@ -55,7 +55,7 @@ if(BUILD_TESTS)
endif()
# Define the directory where will be the configured config.h
SET(GNSS_UTILS_CONFIG_DIR ${PROJECT_BINARY_DIR}/conf/gnss_utils/internal)
SET(GNSS_UTILS_CONFIG_DIR ${PROJECT_BINARY_DIR}/conf/${PROJECT_NAME}/internal)
# Create the specified output directory if it does not exist.
IF(NOT EXISTS "${GNSS_UTILS_CONFIG_DIR}")
......@@ -126,10 +126,10 @@ FIND_PACKAGE(Eigen3 3.3 REQUIRED CONFIG)
INCLUDE_DIRECTORIES(BEFORE include ${RTKLIB_SRC_DIR})
# create the shared library
ADD_LIBRARY(gnss_utils SHARED ${SOURCES} ${RTKLIB_SRC})
ADD_LIBRARY(${PROJECT_NAME} SHARED ${SOURCES} ${RTKLIB_SRC})
# Link this library wrt. its dependencies
TARGET_LINK_LIBRARIES(gnss_utils Eigen3::Eigen)
TARGET_LINK_LIBRARIES(${PROJECT_NAME} Eigen3::Eigen)
# Examples
ADD_SUBDIRECTORY(src/examples)
......@@ -169,12 +169,12 @@ target_include_directories(${PROJECT_NAME} INTERFACE
$<INSTALL_INTERFACE:${INCLUDE_INSTALL_DIR}>
)
INSTALL(DIRECTORY include/gnss_utils DESTINATION ${INCLUDE_INSTALL_DIR})
INSTALL(DIRECTORY include/${PROJECT_NAME} DESTINATION ${INCLUDE_INSTALL_DIR})
INSTALL(FILES ${RTKLIB_SRC_DIR}/rtklib.h DESTINATION ${INCLUDE_INSTALL_DIR}/gnss_utils)
INSTALL(FILES ${RTKLIB_SRC_DIR}/rtklib.h DESTINATION ${INCLUDE_INSTALL_DIR}/${PROJECT_NAME})
INSTALL(FILES "${GNSS_UTILS_CONFIG_DIR}/config.h"
DESTINATION ${INCLUDE_INSTALL_DIR}/gnss_utils/internal)
DESTINATION ${INCLUDE_INSTALL_DIR}/${PROJECT_NAME}/internal)
###############
......
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