Skip to content

Commit ba01b23

Browse files
authored
Addressing issues found in Humble testing (#116)
* Update example to use modern CMake target Signed-off-by: Michael Carroll <[email protected]>
1 parent 584f0f5 commit ba01b23

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

rttest/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ if(${ament_cmake_FOUND})
5858

5959
install(
6060
PROGRAMS scripts/rttest_plot
61-
DESTINATION bin
61+
DESTINATION lib/${PROJECT_NAME}
6262
)
6363

6464
install(

rttest/README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ make
3434
./example_loop
3535
```
3636

37+
Note that if this is run in a Docker container, the `IPC_LOCK` capability must be added to the container capabilities.
38+
This can be managed via the `--cap-add` flag:
39+
```
40+
docker run --cap-add IPC_LOCK
41+
```
42+
3743
## Command line arguments
3844

3945
Passing `argc` and `argv` of an instrumented main function to `rttest_read_args` will enable command line arguments for the instrumented function.
@@ -59,4 +65,4 @@ Default value is 1000.
5965
-tp Set the thread priority of all threads launched by the test program.
6066
Individual thread priority can be set using the `rttest_set_sched_priority` command.
6167

62-
-f Specify the name of the file for writing the collected data. Plot this data file using the `rttest_plot.py` script provided in `scripts`.
68+
-f Specify the name of the file for writing the collected data. Plot this data file using the `rttest_plot` script provided in `scripts`.

rttest/examples/CMakeLists.txt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,5 @@ project(rttest_examples)
44

55
find_package(rttest REQUIRED)
66

7-
link_directories(${rttest_LIBRARY_DIR})
8-
include_directories(${rttest_INCLUDE_DIRS})
9-
107
add_executable(example_loop example_loop.c)
11-
target_link_libraries(example_loop ${rttest_LIBRARIES})
8+
target_link_libraries(example_loop rttest::rttest)

tlsf_cpp/CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@ target_link_libraries(tlsf_allocator_example
3535
${std_msgs_TARGETS}
3636
tlsf_cpp)
3737

38-
install(TARGETS tlsf_allocator_example
39-
DESTINATION bin)
38+
install(TARGETS
39+
tlsf_allocator_example
40+
DESTINATION lib/${PROJECT_NAME})
4041

4142
ament_export_targets(export_tlsf_cpp)
4243

0 commit comments

Comments
 (0)