upload
This commit is contained in:
29
libs/vslam_sim/CMakeLists.txt
Normal file
29
libs/vslam_sim/CMakeLists.txt
Normal file
@@ -0,0 +1,29 @@
|
||||
# Bo mo phong -- thay Gazebo.
|
||||
#
|
||||
# Dep ngoai: chi yaml-cpp (doc map.yaml). Khong OpenGL, khong vat ly 3D,
|
||||
# khong model database. Do la ca diem: Jetson AGX khong co gi de chay Gazebo,
|
||||
# ma thu can kiem chung cho duong ong 2.5D chi la ban do 2D + raycast.
|
||||
|
||||
find_package(yaml-cpp REQUIRED)
|
||||
|
||||
vslam_add_library(vslam_sim
|
||||
PUBLIC_HDRS
|
||||
sim_source.h
|
||||
occupancy_map_io.h
|
||||
gazebo_world.h
|
||||
PUBLIC_DEPS
|
||||
vslam_common
|
||||
vslam_drivers
|
||||
FIND_DEPS
|
||||
vslam_common
|
||||
vslam_drivers
|
||||
)
|
||||
|
||||
if(TARGET yaml-cpp::yaml-cpp)
|
||||
target_link_libraries(vslam_sim PRIVATE yaml-cpp::yaml-cpp)
|
||||
elseif(TARGET yaml-cpp)
|
||||
target_link_libraries(vslam_sim PRIVATE yaml-cpp)
|
||||
else()
|
||||
target_include_directories(vslam_sim SYSTEM PRIVATE ${YAML_CPP_INCLUDE_DIR})
|
||||
target_link_libraries(vslam_sim PRIVATE ${YAML_CPP_LIBRARIES})
|
||||
endif()
|
||||
Reference in New Issue
Block a user