File tree Expand file tree Collapse file tree 2 files changed +64
-12
lines changed
Expand file tree Collapse file tree 2 files changed +64
-12
lines changed Original file line number Diff line number Diff line change 1- # See "DeclareMRPTLib.cmake"
2- list (APPEND random_EXTRA_SRCS "${MRPT_LIBS_ROOT} /random/*.cpp" "${MRPT_LIBS_ROOT} /random/*.h" )
3- list (APPEND random_EXTRA_SRCS_NAME "random" "random" )
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+ # ------------------------------------------------------------------------------
48
5- set_property ( GLOBAL PROPERTY mrpt_random_UNIT_TEST_EXTRA_DEPS mrpt-math )
9+ cmake_minimum_required ( VERSION 3.16 )
610
7- define_mrpt_lib (
8- random # Lib name
9- # Dependencies:
10- )
11+ # Tell CMake we'll use C++ for use in its tests/flags
12+ project (mrpt_random LANGUAGES C CXX )
1113
12- if (BUILD_mrpt-random)
13- # Enforce C++17 in all dependent projects:
14- mrpt_lib_target_requires_cpp17 (random )
15- endif ()
14+ # MRPT CMake scripts: "mrpt_xxx()"
15+ find_package (mrpt_common REQUIRED )
16+
17+ # find dependencies:
18+ #...
19+
20+ # define lib:
21+ set (LIB_SRCS
22+ src/RandomGenerator.cpp
23+ src/random_unittest.cpp
24+ src/random-precomp.cpp
25+ )
26+
27+ set (LIB_PUBLIC_HDRS
28+ include/mrpt/random.h
29+ include/mrpt/random/RandomGenerators.h
30+ include/mrpt/random/random_shuffle.h
31+ include/mrpt/random/portable_uniform_distribution.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+ )
Original file line number Diff line number Diff line change 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_random</name >
8+ <version >2.20.0</version >
9+ <description >The MRPT C++ library mrpt_random</description >
10+
11+ <maintainer email =" joseluisblancoc@gmail.com" >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 >
You can’t perform that action at this time.
0 commit comments