1 Star 0 Fork 2

blackvirus/camera_lidar_calibration

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
CMakeLists.txt 2.01 KB
一键复制 编辑 原始数据 按行查看 历史
xinliang Zhong 提交于 2018-07-20 19:28 . update method v2
cmake_minimum_required(VERSION 2.8)
project(camera_lidar_calibration)
set(CMAKE_CXX_STANDARD 11)
## Test modele, if you do not have aruco, just comment these lines
set(ARUCO_PATH /usr/local)
SET(CMAKE_MODULE_PATH ${ARUCO_PATH}/lib/cmake)
SET(ARUCO_INCLUDE_DIRS ${ARUCO_PATH}/include/aruco )
find_package(aruco REQUIRED )
## Test modele, if you do not have aruco, just comment these lines
#SET(CMAKE_MODULE_PATH ${CMAKE_INSTALL_PREFIX}/lib/cmake/ )
MESSAGE(${ARUCO_INCLUDE_DIRS} )
## Test modele, if you do not have aruco, just comment these lines
find_package(OpenCV 3.3 REQUIRED)
find_package(Ceres REQUIRED)
find_package(Eigen3 REQUIRED)
## Test modele, if you do not have aruco, just comment these lines
## Test modele, if you do not have aruco, just comment these lines
INCLUDE(FindPkgConfig)
include_directories(
${PROJECT_SOURCE_DIR}/include
${PROJECT_SOURCE_DIR}
${CERES_INCLUDE_DIRS}
${OpenCV_INCLUDE_DIRS}
${EIGEN3_INCLUDE_DIR}
${ARUCO_INCLUDE_DIRS} ## Test modele, if you do not have aruco, just comment these lines
)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/lib)
add_library(${PROJECT_NAME} SHARED
src/config.cc
)
LINK_DIRECTORIES(${CMAKE_BINARY_DIR}/res)
target_link_libraries(${PROJECT_NAME}
${OpenCV_LIBS}
${EIGEN3_LIBS}
${CERES_LIBRARIES}
${aruco_LIBS}
# ${ARUCO_LIBS}
)
add_executable(camera_laser_calibration src/camera_lidar_calibration.cc)
target_link_libraries(camera_laser_calibration ${PROJECT_NAME})
add_executable(corner_detecter src/corner_detecter.cc)
target_link_libraries(corner_detecter ${PROJECT_NAME})
add_executable(reprojection src/reprojection.cc)
target_link_libraries(reprojection ${PROJECT_NAME})
add_executable(detect_plane_with_aruco src/detect_plane_with_aruco.cc)
target_link_libraries(detect_plane_with_aruco ${PROJECT_NAME})
add_executable(camera_laser_calibration_v2 src/camera_lidar_calibration_v2.cc)
target_link_libraries(camera_laser_calibration_v2 ${PROJECT_NAME})
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/blackvirus/camera_lidar_calibration.git
git@gitee.com:blackvirus/camera_lidar_calibration.git
blackvirus
camera_lidar_calibration
camera_lidar_calibration
master

搜索帮助