Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Humanoid Path Planner
hpp-util
Commits
6928f8aa
Commit
6928f8aa
authored
Nov 26, 2019
by
Guilhem Saurel
Browse files
[CMake] find TinyXML with the submodule
parent
2bfd01f7
Pipeline
#7658
failed with stage
in 22 seconds
Changes
2
Pipelines
4
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
6928f8aa
...
...
@@ -52,7 +52,8 @@ SET(${PROJECT_NAME}_HEADERS
# Add Boost path to include directories.
INCLUDE_DIRECTORIES
(
${
Boost_INCLUDE_DIRS
}
)
ADD_REQUIRED_DEPENDENCY
(
"tinyxml >= 2.6"
)
SET
(
CMAKE_MODULE_PATH
${
PROJECT_SOURCE_DIR
}
/cmake/find-external/TinyXML
)
FIND_PACKAGE
(
TinyXML REQUIRED
)
ADD_SUBDIRECTORY
(
src
)
ADD_SUBDIRECTORY
(
tests
)
...
...
src/CMakeLists.txt
View file @
6928f8aa
...
...
@@ -49,6 +49,7 @@ SET_TARGET_PROPERTIES(hpp-util PROPERTIES SOVERSION ${PROJECT_VERSION})
# Link against Boost libraries.
TARGET_LINK_LIBRARIES
(
hpp-util
${
Boost_LIBRARIES
}
)
PKG_CONFIG_USE_DEPENDENCY
(
hpp-util tinyxml
)
TARGET_INCLUDE_DIRECTORIES
(
hpp-util PRIVATE
${
TinyXML_INCLUDE_DIR
}
)
TARGET_LINK_LIBRARIES
(
hpp-util
${
TinyXML_LIBRARY
}
)
INSTALL
(
TARGETS hpp-util DESTINATION
${
CMAKE_INSTALL_LIBDIR
}
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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