File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -26,15 +26,25 @@ include_directories(
26
26
${catkin_INCLUDE_DIRS}
27
27
)
28
28
29
+ if (EXISTS ${CMAKE_CURRENT_SOURCE_DIR} /../mav_sensors_drivers/lib/BMI08x-Sensor-API/ )
30
+ set (MAV_SENSORS_BMI08X_SUPPORT ON )
31
+ endif ()
32
+
33
+ if (EXISTS ${CMAKE_CURRENT_SOURCE_DIR} /../mav_sensors_drivers/lib/BMP3-Sensor-API/ )
34
+ set (MAV_SENSORS_BMP3_SUPPORT ON )
35
+ endif ()
36
+
29
37
add_executable (${PROJECT_NAME} _xwr18xx_mmw_demo src/xwr18xx_mmw_demo_node.cpp )
30
38
target_link_libraries (${PROJECT_NAME} _xwr18xx_mmw_demo ${catkin_LIBRARIES} )
31
39
32
40
if (MAV_SENSORS_BMI08X_SUPPORT )
33
- add_executable (${PROJECT_NAME} _bmi088_demo src/bmi088_demo.cpp )
34
- target_link_libraries (${PROJECT_NAME} _bmi088_demo ${catkin_LIBRARIES} )
41
+ message (STATUS "Found BMI08x-Sensor-API" )
42
+ add_executable (${PROJECT_NAME} _bmi088_demo src/bmi088_demo.cpp )
43
+ target_link_libraries (${PROJECT_NAME} _bmi088_demo ${catkin_LIBRARIES} )
35
44
endif ()
36
45
37
46
if (MAV_SENSORS_BMP3_SUPPORT )
38
- add_executable (${PROJECT_NAME} _bmp390_demo src/bmp390_demo.cpp )
39
- target_link_libraries (${PROJECT_NAME} _bmp390_demo ${catkin_LIBRARIES} )
47
+ message (STATUS "Found BMP3-Sensor-API" )
48
+ add_executable (${PROJECT_NAME} _bmp390_demo src/bmp390_demo.cpp )
49
+ target_link_libraries (${PROJECT_NAME} _bmp390_demo ${catkin_LIBRARIES} )
40
50
endif ()
You can’t perform that action at this time.
0 commit comments