1 Star 0 Fork 0

calculateBallSpin/my

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
CMakeLists.txt 1.79 KB
一键复制 编辑 原始数据 按行查看 历史
houkai2020 提交于 2021-10-11 18:43 . modify
cmake_minimum_required(VERSION 3.10)
project(project)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_BUILD_TYPE Debug)
set(thirdParty ${CMAKE_SOURCE_DIR}/3rdparty)
# set lib
set(LIBS pthread)
#########################3rdParty library#############################
# daheng image api include
include_directories(${CMAKE_SOURCE_DIR}/inc)
link_directories(/usr/lib)
list(APPEND LIBS gxiapi)
# opencv library
include_directories(${thirdParty}/opencv/include)
link_directories(${thirdParty}/opencv/lib)
list(APPEND LIBS opencv_core opencv_highgui opencv_imgcodecs opencv_imgproc opencv_video opencv_imgproc opencv_features2d opencv_calib3d opencv_xfeatures2d opencv_flann opencv_videoio)
# Eigen library
include_directories(/usr/include/eigen3)
# halcon library
include_directories(/opt/halcon/include)
link_directories(/opt/halcon/lib/x64-linux)
list(APPEND LIBS halcon halconcpp hdevenginecpp)
#####################################################################
# set cpp files set
file(GLOB CPPS ${CMAKE_SOURCE_DIR}/src/*.cpp)
# micros
add_definitions(-DUSE_THREE_CAMERA) # 使用三个相机
add_definitions(-DUSE_FOUR_CAMERA) # 使用四个相机
# 下面的2个开关只能打开其中一个
option(OpencvCalibration "apply opencv for calibration" OFF)
option(HalconCalibration "apply halcon for calibration" ON)
if (OpencvCalibration)
add_definitions(-DOpencvCalibration)
elseif(HalconCalibration)
add_definitions(-DHalconCalibration)
endif()
# sample scripts
add_subdirectory(samples)
# main program
add_executable(main main.cpp ${CPPS})
target_link_libraries(main ${LIBS})
# 收集相机标定数据
add_executable(getCameraCalibrationData getCameraCalibrationData.cpp ${CPPS} src/imageProcess.cpp inc/imageProcess.h src/Global.cpp inc/ThreadSafeQueue.h)
target_link_libraries(getCameraCalibrationData ${LIBS})
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/calculate-ball-spin/my.git
git@gitee.com:calculate-ball-spin/my.git
calculate-ball-spin
my
my
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385