Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
17 changes: 4 additions & 13 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,12 @@ cmake_minimum_required(VERSION 3.5)

project(tinyxml2_vendor)

find_package(ament_cmake REQUIRED)
list(INSERT CMAKE_MODULE_PATH 0 "${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules")
find_package(TinyXML2 REQUIRED)

configure_file(tinyxml2_vendorConfig.cmake.in
"${PROJECT_BINARY_DIR}/tinyxml2_vendorConfig.cmake" @ONLY)
configure_file(tinyxml2_vendorConfig-version.cmake.in
"${PROJECT_BINARY_DIR}/tinyxml2_vendorConfig-version.cmake" @ONLY)

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

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

install(FILES
"${PROJECT_BINARY_DIR}/tinyxml2_vendorConfig.cmake"
"${PROJECT_BINARY_DIR}/tinyxml2_vendorConfig-version.cmake"
DESTINATION share/${PROJECT_NAME}/cmake)
ament_package(
CONFIG_EXTRAS "tinyxml2_vendor-extras.cmake"
)
4 changes: 2 additions & 2 deletions package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
<maintainer email="william@osrfoundation.org">William Woodall</maintainer>
<license>Apache License 2.0</license>

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

<depend>tinyxml2</depend>

<export>
<build_type>cmake</build_type>
<build_type>ament_cmake</build_type>
</export>
</package>
15 changes: 15 additions & 0 deletions tinyxml2_vendor-extras.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright 2019 Open Source Robotics Foundation, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

list(INSERT CMAKE_MODULE_PATH 0 "${tinyxml2_vendor_DIR}/Modules")
13 changes: 0 additions & 13 deletions tinyxml2_vendorConfig-version.cmake.in

This file was deleted.

13 changes: 0 additions & 13 deletions tinyxml2_vendorConfig.cmake.in

This file was deleted.