GrabBag/SDK/Device/EpicEye/EpicEyeSDK.pro
2026-01-04 23:15:57 +08:00

45 lines
779 B
Prolog
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# EpicEyeSDK.pro
# EpicEye 3D 相机 SDK 静态库
TEMPLATE = lib
CONFIG += staticlib c++11
TARGET = EpicEyeSDK
# 关闭 Qt 模块(这是纯 C++ 库,不需要 Qt
QT -= core gui
# 编译选项
win32-msvc {
QMAKE_CXXFLAGS += /utf-8
}
# 包含路径
INCLUDEPATH += $$PWD/include
INCLUDEPATH += $$PWD/thirdparty
# 源文件
SOURCES += \
$$PWD/src/epiceye.cpp
# 头文件
HEADERS += \
$$PWD/include/epiceye.h \
$$PWD/thirdparty/httplib.h \
$$PWD/thirdparty/nlohmann_json.hpp
# Windows 平台链接库
win32 {
LIBS += -lws2_32 -lwinhttp
}
# Unix/Linux 平台选项
unix:!macx {
QMAKE_CXXFLAGS += -fPIC
}
# 安装
unix {
target.path = /usr/local/lib
}
!isEmpty(target.path): INSTALLS += target