Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mobile_robotics
wolf_projects
wolf_lib
plugins
apriltag
Commits
4b3363be
Commit
4b3363be
authored
Jun 09, 2022
by
mederic_fourmy
Browse files
fix cmake include problem
parent
81354c3e
Changes
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
4b3363be
...
...
@@ -94,13 +94,10 @@ IF(EXISTS "${WOLF_CONFIG_DIR}" AND NOT IS_DIRECTORY "${WOLF_CONFIG_DIR}")
message
(
FATAL_ERROR
"Bug: Specified CONFIG_DIR: "
"
${
WOLF_CONFIG_DIR
}
exists, but is not a directory."
)
ENDIF
()
# Configure config.h
configure_file
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/internal/config.h.in
"
${
WOLF_CONFIG_DIR
}
/config.h"
)
message
(
"CONFIG DIRECTORY
${
PROJECT_BINARY_DIR
}
"
)
include_directories
(
"
${
PROJECT_BINARY_DIR
}
/conf"
)
# ============ INCLUDES ============
INCLUDE_DIRECTORIES
(
BEFORE
"include"
)
# ============ HEADERS ============
SET
(
HDRS_FACTOR
...
...
@@ -193,12 +190,13 @@ install(
${
LIB_INSTALL_DIR
}
/
${
PLUGIN_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
(
${
PLUGIN_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
}
>
)
#install headers
INSTALL
(
FILES
${
HDRS_FACTOR
}
DESTINATION
${
INCLUDE_INSTALL_DIR
}
/
${
PROJECT_NAME
}
/factor
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment