文章目录 ORB_SLAM2 CMakeLists.txt 文件详解 set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/lib) add_library(${PROJECT_NAME} SHARED target_link_libraries(${PROJECT_NAME} set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/Examples/RGB-D) include($ENV{ROS_ROOT}/core/rosbuild/rosbuild.cmake) set(LIBS ORB_SLAM2 CMakeLists.txt 文件详解 cmake_mini