-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove vendored TinyXML * Add FindTinyXML2 CMake Logic * Add XmlUtils with test * Update CI dependencies * Allow trim to remove newlines as well * Remove trailing quote in example sdf * Make internal URDF parser use tinyxml2 Signed-off-by: Michael Carroll <[email protected]> Co-authored-by: Steve Peters <[email protected]> Co-authored-by: Addisu Z. Taddese <[email protected]>
- Loading branch information
1 parent
bd119e5
commit db28ef2
Showing
41 changed files
with
1,509 additions
and
7,046 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# CMake Logic to find system TinyXML2, sourced from: | ||
# ros2/tinyxml2_vendor | ||
# https://github.com/ros2/tinyxml2_vendor/commit/fde8000d31d68ff555431d63af3c324afba9f117#diff-120198e331f1dd3e7806c31af0cfb425 | ||
|
||
# The CMake Logic here is licensed under Apache License 2.0 | ||
# TinyXML2 itself is licensed under the zlib License | ||
|
||
# TinyXML2_FOUND | ||
# TinyXML2_INCLUDE_DIRS | ||
# TinyXML2_LIBRARIES | ||
|
||
# try to find the CMake config file for TinyXML2 first | ||
find_package(TinyXML2 CONFIG QUIET) | ||
if(TinyXML2_FOUND) | ||
message(STATUS "Found TinyXML2 via Config file: ${TinyXML2_DIR}") | ||
if(NOT TINYXML2_LIBRARY) | ||
# in this case, we're probably using TinyXML2 version 5.0.0 or greater | ||
# in which case tinyxml2 is an exported target and we should use that | ||
if(TARGET tinyxml2) | ||
set(TINYXML2_LIBRARY tinyxml2) | ||
elseif(TARGET tinyxml2::tinyxml2) | ||
set(TINYXML2_LIBRARY tinyxml2::tinyxml2) | ||
endif() | ||
endif() | ||
else() | ||
find_path(TINYXML2_INCLUDE_DIR NAMES tinyxml2.h) | ||
|
||
find_library(TINYXML2_LIBRARY tinyxml2) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(TinyXML2 DEFAULT_MSG TINYXML2_LIBRARY TINYXML2_INCLUDE_DIR) | ||
|
||
mark_as_advanced(TINYXML2_INCLUDE_DIR TINYXML2_LIBRARY) | ||
endif() | ||
|
||
# Set mixed case INCLUDE_DIRS and LIBRARY variables from upper case ones. | ||
if(NOT TinyXML2_INCLUDE_DIRS) | ||
set(TinyXML2_INCLUDE_DIRS ${TINYXML2_INCLUDE_DIR}) | ||
endif() | ||
if(NOT TinyXML2_LIBRARIES) | ||
set(TinyXML2_LIBRARIES ${TINYXML2_LIBRARY}) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ | |
<model name='my_model'> | ||
<link name='link'/> | ||
</model> | ||
</sdf>" | ||
</sdf> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.