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

Fix cmake include problem

parent 1cbfbdad
No related branches found
No related tags found
1 merge request!26cmake fixes
Pipeline #11488 failed
......@@ -68,9 +68,6 @@ IF(EXISTS "${GNSS_UTILS_CONFIG_DIR}" AND NOT IS_DIRECTORY "${GNSS_UTILS_CONFIG_D
ENDIF()
# Configure config.h
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/internal/config.h.in "${GNSS_UTILS_CONFIG_DIR}/config.h")
message("GNSS_UTILS CONFIG ${GNSS_UTILS_CONFIG_DIR}/config.h")
message("CONFIG DIRECTORY ${PROJECT_BINARY_DIR}")
include_directories("${PROJECT_BINARY_DIR}/conf")
# rtklib path
SET(RTKLIB_SRC_DIR deps/RTKLIB/src)
......@@ -163,9 +160,9 @@ install(
${LIB_INSTALL_DIR}/${PROJECT_NAME}/cmake
)
# Specifies include directories to use when compiling the plugin target
# This way, include_directories does not need to be called in plugins depending on this one
target_include_directories(${PROJECT_NAME} INTERFACE
target_include_directories(${PLUGIN_NAME} PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<BUILD_INTERFACE:${PROJECT_BINARY_DIR}/conf>
$<INSTALL_INTERFACE:${INCLUDE_INSTALL_DIR}>
)
......
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