Files
VisionGuide/source/VisionGuide.pro
T

92 lines
3.7 KiB
Prolog

# Open this file in Qt Creator with a Qt 5.14.1 / MSVC / x64 kit.
TEMPLATE = app
TARGET = VisionGuide
QT += core gui widgets serialport network
CONFIG += c++17
CONFIG -= debug_and_release debug_and_release_target
# Qt 5.14 can miscalculate header dependencies in deeply nested shadow builds.
# Keep generated dependency paths absolute; qmake recalculates them on each PC.
QMAKE_PROJECT_DEPTH = 0
!win32-msvc: error(This package requires the Windows MSVC compiler and MSVC libraries.)
!equals(QT_MAJOR_VERSION, 5): error(This application uses Qt 5. Select the Qt 5.14.1 MSVC 64-bit kit.)
!contains(QT_ARCH, x86_64): error(Select a 64-bit MSVC kit. The supplied camera and vision libraries are x64.)
VG_ROOT = $$clean_path($$PWD/..)
VG_THIRD_PARTY = $$VG_ROOT/third_party
DEFINES += VISIONGUIDE_QMAKE UA_ARCHITECTURE_WIN32 _CRT_SECURE_NO_WARNINGS WIN32_LEAN_AND_MEAN NOMINMAX
QMAKE_CFLAGS += /utf-8 /wd4819 /wd4828
QMAKE_CXXFLAGS += /utf-8 /Zc:strictStrings- /wd4819 /wd4828 /MP4
QMAKE_LFLAGS += /DELAYLOAD:onnxruntime.dll /ignore:4099
INCLUDEPATH += "$$VG_THIRD_PARTY/GalaxySDK/inc" \
"$$VG_THIRD_PARTY/OpenCV/include" \
"$$VG_THIRD_PARTY/ONNXRuntime/include" \
"$$VG_THIRD_PARTY/VisionGuideDev/include"
LIBS += "$$VG_THIRD_PARTY/GalaxySDK/lib/x64/GxIAPICPPEx.lib" \
"$$VG_THIRD_PARTY/ONNXRuntime/lib/onnxruntime.lib" \
"$$VG_THIRD_PARTY/VisionGuideDev/lib/x64-win64/VisionGuide_cpp.lib" \
"$$VG_THIRD_PARTY/VisionGuideDev/lib/x64-win64/VisionGuide.lib" \
ws2_32.lib delayimp.lib shell32.lib
CONFIG(debug, debug|release) {
VG_CONFIGURATION = Debug
LIBS += "$$VG_THIRD_PARTY/OpenCV/x64/vc16/lib/opencv_world4120d.lib"
} else {
VG_CONFIGURATION = Release
LIBS += "$$VG_THIRD_PARTY/OpenCV/x64/vc16/lib/opencv_world4120.lib"
}
SOURCES += \
$$PWD/AppSettings.cpp \
$$PWD/BoardPoseEstimator.cpp \
$$PWD/CameraManager.cpp \
$$PWD/CameraPanel.cpp \
$$PWD/CoordTransformPanel.cpp \
$$PWD/GrooveOccupancyDetector.cpp \
$$PWD/GroovePanel.cpp \
$$PWD/GroovePoseDetector.cpp \
$$PWD/HandEyeCalibDialog.cpp \
$$PWD/ImageViewer.cpp \
$$PWD/LightController.cpp \
$$PWD/LightPanel.cpp \
$$PWD/MainWindow.cpp \
$$PWD/MeasurementGuidanceSetup.cpp \
$$PWD/MeasurementOptionsPanel.cpp \
$$PWD/MeasurePanel.cpp \
$$PWD/ObstaclePlanner.cpp \
$$PWD/ObstaclePlannerPanel.cpp \
$$PWD/OpcUaComm.cpp \
$$PWD/OpcUaPanel.cpp \
$$PWD/open62541.c \
$$PWD/PortableRuntime.cpp \
$$PWD/ShapeModelGenDialog.cpp \
$$PWD/StereoCalibDialog.cpp \
$$PWD/StereoPoseFusion.cpp \
$$PWD/VisionGuidanceCapturePanel.cpp \
$$PWD/VisionGuideMatcher.cpp \
$$PWD/VisionGuidePanel.cpp \
$$PWD/VisionIpcServer.cpp \
$$PWD/YoloDetector.cpp \
$$PWD/YoloPanel.cpp \
$$PWD/main.cpp
HEADERS += $$files($$PWD/*.h)
FORMS += $$PWD/MainWindow.ui
# Keep generated files and deployed DLLs separate from the existing bin program.
DESTDIR = $$OUT_PWD/bin
OBJECTS_DIR = $$OUT_PWD/obj
MOC_DIR = $$OUT_PWD/moc
UI_DIR = $$OUT_PWD/uic
RCC_DIR = $$OUT_PWD/rcc
INCLUDEPATH += "$$UI_DIR"
VG_STAGE = $$shell_quote($$shell_path($$PWD/tools/Stage-QtCreatorRuntime.ps1))
VG_OUTPUT = $$shell_quote($$shell_path($$DESTDIR))
VG_SOURCE = $$shell_quote($$shell_path($$VG_ROOT))
VG_QT_BIN = $$shell_quote($$shell_path($$[QT_INSTALL_BINS]))
QMAKE_POST_LINK = powershell.exe -NoProfile -ExecutionPolicy Bypass -File $$VG_STAGE -OutputDirectory $$VG_OUTPUT -ProjectRoot $$VG_SOURCE -QtBinDirectory $$VG_QT_BIN -Configuration $$VG_CONFIGURATION
DISTFILES += $$PWD/tools/Stage-QtCreatorRuntime.ps1 \
$$PWD/tools/Patch-VisionRuntimeNames.ps1 \
$$VG_ROOT/portable_assets.json \
$$VG_ROOT/install_hardware_drivers.bat \
$$VG_ROOT/Install-HardwareDrivers.ps1