Lines 1-26
Link Here
|
1 |
--- urdf_parser/CMakeLists.txt.orig 2018-11-14 01:51:13 UTC |
1 |
--- urdf_parser/CMakeLists.txt.orig 2022-03-28 23:52:17 UTC |
2 |
+++ urdf_parser/CMakeLists.txt |
2 |
+++ urdf_parser/CMakeLists.txt |
3 |
@@ -25,17 +25,19 @@ add_executable(urdf_to_graphiz src/urdf_ |
3 |
@@ -93,13 +93,15 @@ target_include_directories(urdf_to_graphviz PUBLIC inc |
4 |
target_link_libraries(urdf_to_graphiz urdfdom_model) |
4 |
target_link_libraries(urdf_to_graphviz urdfdom_model) |
5 |
|
5 |
|
6 |
# urdf_mem_test is a binary for testing, not a unit test |
6 |
# urdf_mem_test is a binary for testing, not a unit test |
7 |
-add_executable(urdf_mem_test test/memtest.cpp) |
|
|
8 |
-target_link_libraries(urdf_mem_test urdfdom_model) |
9 |
+if (BUILD_TESTING) |
7 |
+if (BUILD_TESTING) |
10 |
+ add_executable(urdf_mem_test test/memtest.cpp) |
8 |
add_executable(urdf_mem_test test/memtest.cpp) |
11 |
+ target_link_libraries(urdf_mem_test urdfdom_model) |
9 |
target_include_directories(urdf_mem_test PUBLIC include) |
|
|
10 |
target_link_libraries(urdf_mem_test urdfdom_model) |
12 |
+endif() |
11 |
+endif() |
13 |
|
12 |
|
14 |
-include(CTest) |
13 |
-include(CTest) |
15 |
if(BUILD_TESTING) |
14 |
if(BUILD_TESTING) |
|
|
15 |
# TODO: check Shane's comment https://github.com/ros/urdfdom/pull/157/files#r664960227 |
16 |
+ include(CTest) |
16 |
+ include(CTest) |
17 |
add_subdirectory(test) |
17 |
add_subdirectory(test) |
18 |
endif() |
18 |
endif() |
19 |
|
19 |
|
20 |
INSTALL(TARGETS urdfdom_model DESTINATION ${CMAKE_INSTALL_LIBDIR}) |
20 |
@@ -108,7 +110,6 @@ INSTALL( |
21 |
INSTALL(TARGETS urdfdom_world DESTINATION ${CMAKE_INSTALL_LIBDIR}) |
21 |
check_urdf |
22 |
-INSTALL(TARGETS check_urdf urdf_to_graphiz urdf_mem_test |
22 |
urdf_to_graphiz |
23 |
+INSTALL(TARGETS check_urdf urdf_to_graphiz |
23 |
urdf_to_graphviz |
24 |
DESTINATION ${CMAKE_INSTALL_BINDIR}) |
24 |
- urdf_mem_test |
25 |
INSTALL(TARGETS urdfdom_sensor DESTINATION ${CMAKE_INSTALL_LIBDIR}) |
25 |
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} |
26 |
INSTALL(TARGETS urdfdom_model_state DESTINATION ${CMAKE_INSTALL_LIBDIR}) |
26 |
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} |
|
|
27 |
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} |