update
This commit is contained in:
@@ -28,4 +28,18 @@ if(VSLAM_BUILD_SLAM)
|
||||
target_compile_definitions(vslam_node PRIVATE VSLAM_HAVE_SLAM=1)
|
||||
endif()
|
||||
|
||||
# Hai driver phan cung can SDK ngoai. Cac macro nay PHAI dat lai o day chu
|
||||
# khong the lay tu vslam_drivers: o do chung la PRIVATE, nen app khong thay.
|
||||
# Dat PUBLIC ben kia thi moi nguoi dung vslam_drivers deu phai co SDK trong
|
||||
# include path -- dung cai ma `option()` sinh ra de tranh.
|
||||
#
|
||||
# Hau qua neu quen: `#ifdef` trong runtime.cc lang le thanh false, va --live
|
||||
# chay KHONG co camera ma khong ai hieu tai sao.
|
||||
if(VSLAM_WITH_REALSENSE)
|
||||
target_compile_definitions(vslam_node PRIVATE VSLAM_HAVE_REALSENSE=1)
|
||||
endif()
|
||||
if(VSLAM_WITH_CANOPEN)
|
||||
target_compile_definitions(vslam_node PRIVATE VSLAM_HAVE_CANOPEN=1)
|
||||
endif()
|
||||
|
||||
install(TARGETS vslam_node RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
|
||||
|
||||
Reference in New Issue
Block a user