Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 3 additions & 11 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ option(FORCE_BUILD_VENDOR_PKG
"Build TinyXML from source, even if system-installed package is available"
OFF)

find_package(ament_cmake REQUIRED)

if(NOT FORCE_BUILD_VENDOR_PKG)
list(INSERT CMAKE_MODULE_PATH 0 "${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules")
find_package(TinyXML)
Expand Down Expand Up @@ -37,16 +39,6 @@ else()
message(STATUS "Found TinyXML. Using TinyXML from system.")
endif()

configure_file(tinyxml_vendorConfig.cmake.in "${PROJECT_BINARY_DIR}/tinyxml_vendorConfig.cmake" @ONLY)
configure_file(tinyxml_vendorConfig-version.cmake.in "${PROJECT_BINARY_DIR}/tinyxml_vendorConfig-version.cmake" @ONLY)
Comment thread
dirk-thomas marked this conversation as resolved.

install(DIRECTORY cmake DESTINATION share/${PROJECT_NAME})

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

install(FILES
"${PROJECT_BINARY_DIR}/tinyxml_vendorConfig.cmake"
"${PROJECT_BINARY_DIR}/tinyxml_vendorConfig-version.cmake"
DESTINATION share/${PROJECT_NAME}/cmake)
ament_package()
4 changes: 2 additions & 2 deletions package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
<maintainer email="steven@openrobotics.org">Steven! Ragnarök</maintainer>
<license>Apache License 2.0</license>

<buildtool_depend>cmake</buildtool_depend>
<buildtool_depend>ament_cmake</buildtool_depend>

<depend>tinyxml</depend>

<export>
<build_type>cmake</build_type>
<build_type>ament_cmake</build_type>
</export>
</package>