-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Standalone kdl_parser library #13
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
e702f3a
remove boost dependency
christian-rauch b9e97e0
cmake modules for TinyXML and TinyXML2
christian-rauch b5aa497
make catkin and rosconsole optional, replace urdf by urdfdom
christian-rauch 5cd531c
append to cmake module path
christian-rauch 3d034bc
replace urdf by urdfdom
christian-rauch 5ba1ca8
mention source of local cmake module files
christian-rauch 34a8221
define ROS_WARN and ROS_ERROR as standard error
christian-rauch b15ec10
remove define guards from header files
christian-rauch b1e20c5
always build shared library
christian-rauch e028ccd
define ROS_DEBUG as standard output
christian-rauch File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
################################################################################################## | ||
# | ||
# CMake script for finding TinyXML. | ||
# | ||
# Input variables: | ||
# | ||
# - TinyXML_ROOT_DIR (optional): When specified, header files and libraries will be searched for in | ||
# ${TinyXML_ROOT_DIR}/include | ||
# ${TinyXML_ROOT_DIR}/libs | ||
# respectively, and the default CMake search order will be ignored. When unspecified, the default | ||
# CMake search order is used. | ||
# This variable can be specified either as a CMake or environment variable. If both are set, | ||
# preference is given to the CMake variable. | ||
# Use this variable for finding packages installed in a nonstandard location, or for enforcing | ||
# that one of multiple package installations is picked up. | ||
# | ||
# | ||
# Cache variables (not intended to be used in CMakeLists.txt files) | ||
# | ||
# - TinyXML_INCLUDE_DIR: Absolute path to package headers. | ||
# - TinyXML_LIBRARY: Absolute path to library. | ||
# | ||
# | ||
# Output variables: | ||
# | ||
# - TinyXML_FOUND: Boolean that indicates if the package was found | ||
# - TinyXML_INCLUDE_DIRS: Paths to the necessary header files | ||
# - TinyXML_LIBRARIES: Package libraries | ||
# | ||
# | ||
# Example usage: | ||
# | ||
# find_package(TinyXML) | ||
# if(NOT TinyXML_FOUND) | ||
# # Error handling | ||
# endif() | ||
# ... | ||
# include_directories(${TinyXML_INCLUDE_DIRS} ...) | ||
# ... | ||
# target_link_libraries(my_target ${TinyXML_LIBRARIES}) | ||
# | ||
################################################################################################## | ||
|
||
# Get package location hint from environment variable (if any) | ||
if(NOT TinyXML_ROOT_DIR AND DEFINED ENV{TinyXML_ROOT_DIR}) | ||
set(TinyXML_ROOT_DIR "$ENV{TinyXML_ROOT_DIR}" CACHE PATH | ||
"TinyXML base directory location (optional, used for nonstandard installation paths)") | ||
endif() | ||
|
||
# Search path for nonstandard package locations | ||
if(TinyXML_ROOT_DIR) | ||
set(TinyXML_INCLUDE_PATH PATHS "${TinyXML_ROOT_DIR}/include" NO_DEFAULT_PATH) | ||
set(TinyXML_LIBRARY_PATH PATHS "${TinyXML_ROOT_DIR}/lib" NO_DEFAULT_PATH) | ||
endif() | ||
|
||
# Find headers and libraries | ||
find_path(TinyXML_INCLUDE_DIR NAMES tinyxml.h PATH_SUFFIXES "tinyxml" ${TinyXML_INCLUDE_PATH}) | ||
find_library(TinyXML_LIBRARY NAMES tinyxml PATH_SUFFIXES "tinyxml" ${TinyXML_LIBRARY_PATH}) | ||
|
||
mark_as_advanced(TinyXML_INCLUDE_DIR | ||
TinyXML_LIBRARY) | ||
|
||
# Output variables generation | ||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(TinyXML DEFAULT_MSG TinyXML_LIBRARY | ||
TinyXML_INCLUDE_DIR) | ||
|
||
set(TinyXML_FOUND ${TINYXML_FOUND}) # Enforce case-correctness: Set appropriately cased variable... | ||
unset(TINYXML_FOUND) # ...and unset uppercase variable generated by find_package_handle_standard_args | ||
|
||
if(TinyXML_FOUND) | ||
set(TinyXML_INCLUDE_DIRS ${TinyXML_INCLUDE_DIR}) | ||
set(TinyXML_LIBRARIES ${TinyXML_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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
################################################################################################## | ||
# | ||
# CMake script for finding TinyXML2. | ||
christian-rauch marked this conversation as resolved.
Show resolved
Hide resolved
|
||
# | ||
# Input variables: | ||
# | ||
# - TinyXML2_ROOT_DIR (optional): When specified, header files and libraries will be searched for in | ||
# ${TinyXML2_ROOT_DIR}/include | ||
# ${TinyXML2_ROOT_DIR}/libs | ||
# respectively, and the default CMake search order will be ignored. When unspecified, the default | ||
# CMake search order is used. | ||
# This variable can be specified either as a CMake or environment variable. If both are set, | ||
# preference is given to the CMake variable. | ||
# Use this variable for finding packages installed in a nonstandard location, or for enforcing | ||
# that one of multiple package installations is picked up. | ||
# | ||
# | ||
# Cache variables (not intended to be used in CMakeLists.txt files) | ||
# | ||
# - TinyXML2_INCLUDE_DIR: Absolute path to package headers. | ||
# - TinyXML2_LIBRARY: Absolute path to library. | ||
# | ||
# | ||
# Output variables: | ||
# | ||
# - TinyXML2_FOUND: Boolean that indicates if the package was found | ||
# - TinyXML2_INCLUDE_DIRS: Paths to the necessary header files | ||
# - TinyXML2_LIBRARIES: Package libraries | ||
# | ||
# | ||
# Example usage: | ||
# | ||
# find_package(TinyXML2) | ||
# if(NOT TinyXML2_FOUND) | ||
# # Error handling | ||
# endif() | ||
# ... | ||
# include_directories(${TinyXML2_INCLUDE_DIRS} ...) | ||
# ... | ||
# target_link_libraries(my_target ${TinyXML2_LIBRARIES}) | ||
# | ||
################################################################################################## | ||
|
||
# Get package location hint from environment variable (if any) | ||
if(NOT TinyXML2_ROOT_DIR AND DEFINED ENV{TinyXML2_ROOT_DIR}) | ||
set(TinyXML2_ROOT_DIR "$ENV{TinyXML2_ROOT_DIR}" CACHE PATH | ||
"TinyXML2 base directory location (optional, used for nonstandard installation paths)") | ||
endif() | ||
|
||
# Search path for nonstandard package locations | ||
if(TinyXML2_ROOT_DIR) | ||
set(TinyXML2_INCLUDE_PATH PATHS "${TinyXML2_ROOT_DIR}/include" NO_DEFAULT_PATH) | ||
set(TinyXML2_LIBRARY_PATH PATHS "${TinyXML2_ROOT_DIR}/lib" NO_DEFAULT_PATH) | ||
endif() | ||
|
||
# Find headers and libraries | ||
find_path(TinyXML2_INCLUDE_DIR NAMES tinyxml2.h PATH_SUFFIXES "tinyxml2" ${TinyXML2_INCLUDE_PATH}) | ||
find_library(TinyXML2_LIBRARY NAMES tinyxml2 PATH_SUFFIXES "tinyxml2" ${TinyXML2_LIBRARY_PATH}) | ||
|
||
mark_as_advanced(TinyXML2_INCLUDE_DIR | ||
TinyXML2_LIBRARY) | ||
|
||
# Output variables generation | ||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(TinyXML2 DEFAULT_MSG TinyXML2_LIBRARY | ||
TinyXML2_INCLUDE_DIR) | ||
|
||
set(TinyXML2_FOUND ${TINYXML2_FOUND}) # Enforce case-correctness: Set appropriately cased variable... | ||
unset(TINYXML2_FOUND) # ...and unset uppercase variable generated by find_package_handle_standard_args | ||
|
||
if(TinyXML2_FOUND) | ||
set(TinyXML2_INCLUDE_DIRS ${TinyXML2_INCLUDE_DIR}) | ||
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was going to say it looks like this was copied from urdfdom, in which case this shouldn't be needed since
find_package(urdfdom REQUIRED)
is used in theCMakeLists.txt
, but it looks likeurdfdom
is notfind_package
ing TinyXML in its<project>-config.cmake
like it shouldThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ros/urdfdom#120