Skip to content

Commit e121bea

Browse files
authored
Merge pull request #23 from dfki-ric/fix/debug_drawings_dependencies
Make sure GUIs and unit tests also build when DebugDrawings are enabled.
2 parents 1343c4e + 6071d61 commit e121bea

File tree

3 files changed

+12
-17
lines changed

3 files changed

+12
-17
lines changed

src/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ set(DEPS_PKGCONFIG_LIST
1515

1616
if (ENABLE_DEBUG_DRAWINGS)
1717
list(APPEND DEPS_PKGCONFIG_LIST vizkit3d_debug_drawings-commands)
18+
# These are (only) required for building the GUIs:
19+
list(APPEND DEPS_PKGCONFIG_QT4 vizkit3d_debug_drawings)
20+
list(APPEND DEPS_PKGCONFIG_QT5 vizkit3d_debug_drawings-qt5)
1821
endif()
1922

2023
rock_library(ugv_nav4d

src/gui/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ if(ROCK_QT_VERSION_4)
2424
trajectory_follower-viz
2525
pcl_common${PCL_VERSION_SUFFIX}
2626
pcl_io${PCL_VERSION_SUFFIX}
27+
${DEPS_PKGCONFIG_QT4}
2728
)
2829

2930
rock_executable(ugv_nav4d_bin
@@ -59,6 +60,7 @@ if(ROCK_QT_VERSION_5)
5960
trajectory_follower-viz-qt5
6061
pcl_common${PCL_VERSION_SUFFIX}
6162
pcl_io${PCL_VERSION_SUFFIX}
63+
${DEPS_PKGCONFIG_QT5}
6264
)
6365

6466
rock_executable(ugv_nav4d_bin-qt5

src/test/CMakeLists.txt

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,13 @@
11
find_package(Boost REQUIRED COMPONENTS filesystem)
22

3-
add_executable(test_ugv_nav4d test_ugv_nav4d.cpp)
4-
add_executable(test_EnvironmentXYZTheta test_EnvironmentXYZTheta.cpp)
53

6-
7-
target_link_libraries(test_ugv_nav4d PRIVATE ugv_nav4d Boost::filesystem)
8-
target_link_libraries(test_EnvironmentXYZTheta PRIVATE ugv_nav4d Boost::filesystem)
9-
10-
11-
# Install the binaries
12-
install(TARGETS test_ugv_nav4d EXPORT test_ugv_nav4d-targets
13-
ARCHIVE DESTINATION lib
14-
LIBRARY DESTINATION lib
15-
RUNTIME DESTINATION bin
4+
rock_executable(test_ugv_nav4d
5+
SOURCES test_ugv_nav4d.cpp
6+
DEPS_PKGCONFIG ugv_nav4d
167
)
178

18-
install(TARGETS test_EnvironmentXYZTheta EXPORT test_EnvironmentXYZTheta-targets
19-
ARCHIVE DESTINATION lib
20-
LIBRARY DESTINATION lib
21-
RUNTIME DESTINATION bin
9+
rock_executable(test_EnvironmentXYZTheta
10+
SOURCES test_EnvironmentXYZTheta.cpp
11+
DEPS Boost::filesystem
12+
DEPS_PKGCONFIG ugv_nav4d
2213
)
23-

0 commit comments

Comments
 (0)