71 lines
1.7 KiB
Prolog
71 lines
1.7 KiB
Prolog
# Qt 5 鍏煎锛歈OpenGLWidget 鍦?widgets 妯″潡涓?
|
|
QT += core gui widgets opengl
|
|
|
|
CONFIG += c++17
|
|
CONFIG -= app_bundle
|
|
|
|
# Windows骞冲彴UTF-8缂栫爜鏀寔
|
|
win32-msvc {
|
|
QMAKE_CXXFLAGS += /utf-8
|
|
QMAKE_CXXFLAGS += /bigobj
|
|
}
|
|
|
|
TARGET = CloudView
|
|
TEMPLATE = app
|
|
|
|
# 椤圭洰鐩綍
|
|
INCLUDEPATH += $$PWD/Inc
|
|
INCLUDEPATH += $$PWD/../CloudView3D/Inc
|
|
INCLUDEPATH += $$PWD/../CloudUtils/Inc
|
|
INCLUDEPATH += $$PWD/../../Device/SDK/VzNLSDK/Inc
|
|
INCLUDEPATH += $$PWD/../VrUtils/Inc
|
|
INCLUDEPATH += $$PWD/../VrCommon/Inc
|
|
|
|
# 澶存枃浠?
|
|
HEADERS += \
|
|
Inc/CloudViewMainWindow.h \
|
|
Inc/PointCloudGLWidget.h \
|
|
Inc/PointCloudConverter.h
|
|
|
|
# 婧愭枃浠?
|
|
SOURCES += \
|
|
main.cpp \
|
|
Src/CloudViewMainWindow.cpp \
|
|
Src/PointCloudConverter.cpp
|
|
|
|
# 璧勬簮鏂囦欢
|
|
RESOURCES += resource/resource.qrc
|
|
RESOURCES += $$PWD/../../AppUtils/UICommon/common_resources.qrc
|
|
|
|
# Windows 搴旂敤鍥炬爣
|
|
RC_ICONS = resource/logo.ico
|
|
|
|
# Windows骞冲彴搴撻摼鎺?
|
|
win32:CONFIG(release, debug|release): {
|
|
LIBS += -L../CloudView3D/release -lCloudView3D
|
|
LIBS += -L../CloudUtils/release -lCloudUtils
|
|
LIBS += -L../VrUtils/release -lVrUtils
|
|
LIBS += -L../VrCommon/release -lVrCommon
|
|
}
|
|
else:win32:CONFIG(debug, debug|release): {
|
|
LIBS += -L../CloudView3D/debug -lCloudView3D
|
|
LIBS += -L../CloudUtils/debug -lCloudUtils
|
|
LIBS += -L../VrUtils/debug -lVrUtils
|
|
LIBS += -L../VrCommon/debug -lVrCommon
|
|
}
|
|
|
|
# Windows绯荤粺搴?
|
|
win32 {
|
|
LIBS += -lAdvapi32
|
|
LIBS += -lopengl32
|
|
LIBS += -lglu32
|
|
}
|
|
|
|
|
|
DEFINES += _USE_MATH_DEFINES
|
|
|
|
# Default rules for deployment
|
|
qnx: target.path = /tmp/$${TARGET}/bin
|
|
else: unix:!android: target.path = /opt/$${TARGET}/bin
|
|
!isEmpty(target.path): INSTALLS += target
|