Skip to content

Commit 6ea0610

Browse files
committed
wip: create package.xml's
1 parent 7bfb2e4 commit 6ea0610

File tree

4 files changed

+95
-30
lines changed

4 files changed

+95
-30
lines changed

modules/mrpt_common/package.xml

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,33 +5,19 @@
55
-->
66
<package format="3">
77
<name>mrpt_common</name>
8-
<version>3.0.0</version>
8+
<version>2.20.0</version>
99
<description>Common CMake scripts to all MRPT modules</description>
1010

1111
<maintainer email="[email protected]">Jose-Luis Blanco-Claraco</maintainer>
1212
<license file="LICENSE">BSD</license>
1313

1414
<url type="website">https://github.com/MRPT/</url>
1515

16-
<doc_depend>doxygen</doc_depend>
17-
18-
<!-- COMMON DEPS -->
19-
<build_depend>ros_environment</build_depend>
20-
2116
<!-- BUILD TOOLS -->
2217
<buildtool_depend>cmake</buildtool_depend>
23-
<buildtool_depend condition="$ROS_VERSION == 1">catkin</buildtool_depend>
24-
<buildtool_depend condition="$ROS_VERSION == 2">ament_cmake_gtest</buildtool_depend>
25-
<buildtool_depend condition="$ROS_VERSION == 2">ament_cmake</buildtool_depend>
26-
27-
<!-- ROS2 -->
28-
<test_depend condition="$ROS_VERSION == 2">ament_lint_auto</test_depend>
29-
<test_depend condition="$ROS_VERSION == 2">ament_lint_common</test_depend>
30-
<build_depend condition="$ROS_VERSION == 2">ament_cmake_xmllint</build_depend>
3118

3219
<export>
33-
<build_type condition="$ROS_VERSION == 1">catkin</build_type>
34-
<build_type condition="$ROS_VERSION == 2">ament_cmake</build_type>
20+
<build_type>cmake</build_type>
3521
</export>
3622

3723
</package>

modules/mrpt_core/package.xml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?xml version="1.0"?>
2+
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
3+
<!-- This is a ROS package file, intended to allow this library to be built
4+
side-by-side to ROS packages in a catkin/ament environment.
5+
-->
6+
<package format="3">
7+
<name>mrpt_core</name>
8+
<version>2.20.0</version>
9+
<description>The MRPT C++ library mrpt_core</description>
10+
11+
<maintainer email="[email protected]">Jose-Luis Blanco-Claraco</maintainer>
12+
<license file="LICENSE">BSD</license>
13+
14+
<url type="website">https://github.com/MRPT/</url>
15+
16+
<!-- BUILD TOOLS -->
17+
<buildtool_depend>cmake</buildtool_depend>
18+
19+
<depend>mrpt_common</depend>
20+
21+
<export>
22+
<build_type>cmake</build_type>
23+
</export>
24+
25+
</package>
Lines changed: 43 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,43 @@
1-
#---------------------------------------------
2-
# Macro declared in "DeclareMRPTLib.cmake":
3-
#---------------------------------------------
4-
define_mrpt_lib_header_only(
5-
# Lib name
6-
typemeta
7-
# Dependencies
8-
)
9-
10-
if(BUILD_mrpt-typemeta)
11-
# Enforce C++17 in all dependent projects:
12-
mrpt_lib_target_requires_cpp17(typemeta)
13-
14-
endif()
1+
# ------------------------------------------------------------------------------
2+
# Mobile Robot Programming Toolkit (MRPT)
3+
#
4+
# Copyright (c) 2005-2025, Jose Luis Blanco-Claraco, contributors (see Git history)
5+
# All rights reserved.
6+
# Released under BSD-3 license. See LICENSE file
7+
# ------------------------------------------------------------------------------
8+
9+
cmake_minimum_required(VERSION 3.16)
10+
11+
# Tell CMake we'll use C++ for use in its tests/flags
12+
project(mrpt_typemeta LANGUAGES C CXX)
13+
14+
# MRPT CMake scripts: "mrpt_xxx()"
15+
find_package(mrpt_common REQUIRED)
16+
17+
# define lib:
18+
set(LIB_SRCS
19+
src/typename_unittest.cpp
20+
src/enumtype_unittest.cpp
21+
src/static_string_unittest.cpp
22+
src/xassert_unittest.cpp
23+
)
24+
25+
set(LIB_PUBLIC_HDRS
26+
include/mrpt/typemeta/static_string.h
27+
include/mrpt/typemeta/xassert.h
28+
include/mrpt/typemeta/TTypeName.h
29+
include/mrpt/typemeta/TEnumType.h
30+
include/mrpt/typemeta/num_to_string.h
31+
include/mrpt/typemeta/TTypeName_stl.h
32+
)
33+
34+
mrpt_add_library(
35+
TARGET ${PROJECT_NAME}
36+
SOURCES ${LIB_SRCS} ${LIB_PUBLIC_HDRS}
37+
# PUBLIC_LINK_LIBRARIES
38+
# xxx
39+
# PRIVATE_LINK_LIBRARIES
40+
# CMAKE_DEPENDENCIES
41+
# xxx
42+
)
43+

modules/mrpt_typemeta/package.xml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?xml version="1.0"?>
2+
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
3+
<!-- This is a ROS package file, intended to allow this library to be built
4+
side-by-side to ROS packages in a catkin/ament environment.
5+
-->
6+
<package format="3">
7+
<name>mrpt_typemeta</name>
8+
<version>2.20.0</version>
9+
<description>The MRPT C++ library mrpt_typemeta</description>
10+
11+
<maintainer email="[email protected]">Jose-Luis Blanco-Claraco</maintainer>
12+
<license file="LICENSE">BSD</license>
13+
14+
<url type="website">https://github.com/MRPT/</url>
15+
16+
<!-- BUILD TOOLS -->
17+
<buildtool_depend>cmake</buildtool_depend>
18+
19+
<depend>mrpt_common</depend>
20+
21+
<export>
22+
<build_type>cmake</build_type>
23+
</export>
24+
25+
</package>

0 commit comments

Comments
 (0)