1 Star 0 Fork 8

Achen/GLMocap

forked from guanglun/GLMocap 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
CMakeLists.txt 5.06 KB
一键复制 编辑 原始数据 按行查看 历史
guanglun 提交于 2021-10-29 22:13 . update debug mode bug
cmake_minimum_required(VERSION 3.5)
project(GLMocap LANGUAGES C CXX)
find_package(Qt5 COMPONENTS Core Widgets Gui OpenGL Network REQUIRED)
find_package(OpenCV 4.5.3 REQUIRED)
find_package(OpenGL REQUIRED)
if (MSVC)
add_compile_options(/wd4200 /wd4267 /wd4102 /wd4309 /wd4305)
endif()
add_compile_options(-Wno-attributes)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOUIC OFF)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
# set(CMAKE_CXX_STANDARD 11)
# set(CMAKE_CXX_STANDARD_REQUIRED ON)
QT5_WRAP_UI( UI_HEADERS
${CMAKE_SOURCE_DIR}/src/formCameraConfig/formcamconfig.ui
${CMAKE_SOURCE_DIR}/src/formCameraWindow/formcamwindow.ui
${CMAKE_SOURCE_DIR}/src/formVioWindow/formviowindow.ui
${CMAKE_SOURCE_DIR}/src/formCvWindow/formcvwindow.ui
${CMAKE_SOURCE_DIR}/src/formVisionWindow/formvisionwindow.ui
${CMAKE_SOURCE_DIR}/src/form3DViewWindow/form3dviewwindow.ui
${CMAKE_SOURCE_DIR}/src/formLogWindow/formlogwindow.ui
${CMAKE_SOURCE_DIR}/src/px4/formpx4window.ui
${CMAKE_SOURCE_DIR}/src/formConfig/formconfig.ui
${CMAKE_SOURCE_DIR}/src/formCalibrWindow/formcalibrwindow.ui
${CMAKE_SOURCE_DIR}/src/formAbout/formabout.ui
)
set(APP_ICON_RESOURCE_WINDOWS "${CMAKE_CURRENT_SOURCE_DIR}/resource/image/logo.rc")
add_executable(GLMocap
# WIN32
${UI_HEADERS}
src/resource.qrc
src/formCameraConfig/formcamconfig.cpp
src/formCameraWindow/formcamwindow.cpp
src/formVioWindow/formviowindow.cpp
src/formVisionWindow/formvisionwindow.cpp
src/form3DViewWindow/form3dviewwindow.cpp
src/formlogWindow/formlogwindow.cpp
src/formCvWindow/formcvwindow.cpp
src/vision/MultipleViewTriangulation.cpp
src/vision/MultipleViewTriangulationCommon.cpp
src/vision/OptimalCorrection.cpp
src/vision/CameraPointMap.cpp
src/firmwareUpgrade/firmwareUpgrade.cpp
src/firmwareUpgrade/upgradeRecvThread.cpp
src/firmwareUpgrade/upgradeThread.cpp
src/formCameraWindow/MuItemCam.cpp
src/MuItemCtrl/MuItemCtrl.cpp
src/MuItemCtrl/MuItemCtrlThread.cpp
src/process/CamProcess.cpp
src/process/VisionProcess.cpp
src/px4/formpx4window.cpp
src/PathPlan/PlanPoint.cpp
src/PathPlan/MuItemPoint.cpp
src/formAbout/formabout.cpp
src/vision/GLPoint.cpp
src/main.cpp
src/openvio/openvio.cpp
src/winusb/winusbdriver.cpp
src/winusb/usbthread.cpp
src/easytool/easytool.cpp
src/easytool/findstr.cpp
src/process/CtrlProcess.cpp
src/process/PlanFlyProcess.cpp
src/image/image.cpp
src/drow/camview.cpp
src/drow/glview.cpp
src/drow/gldrow.cpp
src/setting/setting.cpp
src/log/log.cpp
src/imu/imuso3.cpp
src/imu/imu.cpp
src/gl_protocol/frame_send.c
src/gl_protocol/frame_parse.c
src/gl_protocol/frame_send.c
src/gl_protocol/frame_parse.c
src/px4/PX4Thread/PX4Thread.cpp
src/drow/model.cpp
src/drow/mesh.cpp
src/drow/glwidget.cpp
src/drow/camera.cpp
src/process/CalibrProcess.cpp
src/calibration/Calibration.cpp
src/formConfig/formconfig.cpp
src/formCalibrWindow/formcalibrwindow.cpp
${APP_ICON_RESOURCE_WINDOWS}
)
include_directories(
src
src/winusb
src/imu
src/log
src/setting
src/easytool
src/drow
src/image
src/calibration
src/formCameraConfig
src/formMainWindow
src/formCameraWindow
src/formVioWindow
src/formVisionWindow
src/form3DViewWindow
src/formLogWindow
src/formCvWindow
src/firmwareUpgrade
src/gl_protocol
src/process
src/MuItemCtrl
src/vision
src/openvio
src/px4/mavlink
src/px4/mavlink/common
src/px4/PX4Thread
src/px4
src/PathPlan
src/formAbout
src/formConfig
src/formCalibrWindow
lib/eigen-3.2.10
lib/libusb/include/libusb-1.0
lib/assimp/include
${OpenCV_INCLUDE_DIRS}
)
link_directories(
lib/eigen-3.2.10
)
if (MSVC)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /SAFESEH:NO /NODEFAULTLIB:${CMAKE_SOURCE_DIR}/lib/usb/libusb-1.0.lib")
endif()
target_link_libraries(GLMocap
Qt5::Widgets
Qt5::Core
Qt5::Gui
Qt5::Network
Qt5::OpenGL
${OPENGL_LIBRARIES}
${CMAKE_SOURCE_DIR}/lib/libusb/MinGW64/dll/libusb-1.0.dll.a
${CMAKE_SOURCE_DIR}/lib/assimp/lib/libIrrXML.a
${CMAKE_SOURCE_DIR}/lib/assimp/lib/libassimp.dll.a
${OpenCV_LIBS}
)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/zthcool/GLMocap.git
[email protected]:zthcool/GLMocap.git
zthcool
GLMocap
GLMocap
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385