Skip to content

Commit

Permalink
Install the FindTinyXML2.cmake file.
Browse files Browse the repository at this point in the history
This is so downstream projects can always find it.

Signed-off-by: Chris Lalancette <[email protected]>
  • Loading branch information
clalancette committed Nov 30, 2023
1 parent b592bbd commit 0e61d1f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,11 @@ install(FILES
DESTINATION ${CMAKE_CONFIG_INSTALL_DIR}
)

# Some operating systems (like Ubuntu 22.04) do not provide a default
# way to find TinyXML2. For that reason, this package provides it
install(FILES cmake/FindTinyXML2.cmake
DESTINATION ${CMAKE_CONFIG_INSTALL_DIR})

install(FILES package.xml DESTINATION share/${PROJECT_NAME})

# Make the package config file
Expand All @@ -102,7 +107,6 @@ install(FILES ${CMAKE_BINARY_DIR}/${pkg_conf_file}
DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig/ COMPONENT pkgconfig)



# Add uninstall target
# Ref: http://www.cmake.org/Wiki/CMake_FAQ#Can_I_do_.22make_uninstall.22_with_CMake.3F
configure_file(
Expand Down
2 changes: 2 additions & 0 deletions cmake/urdfdom-config.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ if (@PKG_NAME@_CONFIG_INCLUDED)
endif()
set(@PKG_NAME@_CONFIG_INCLUDED TRUE)

list(APPEND CMAKE_MODULE_PATH "${@PROJECT_NAME@_DIR}")

set(@PKG_NAME@_INCLUDE_DIRS "${@PROJECT_NAME@_DIR}/@RELATIVE_PATH_CMAKE_DIR_TO_PREFIX@/@CMAKE_INSTALL_INCLUDEDIR@")

foreach(lib @PKG_LIBRARIES@)
Expand Down

0 comments on commit 0e61d1f

Please sign in to comment.