64 lines
1.5 KiB
Prolog
64 lines
1.5 KiB
Prolog
|
|
QT += widgets
|
||
|
|
TEMPLATE = app
|
||
|
|
CONFIG += c++17
|
||
|
|
TARGET = VrVirtualCamera
|
||
|
|
|
||
|
|
win32-msvc {
|
||
|
|
QMAKE_CXXFLAGS += /utf-8
|
||
|
|
}
|
||
|
|
|
||
|
|
# Include VZNLSDK headers for type definitions (no .lib linkage needed)
|
||
|
|
INCLUDEPATH += $$PWD/../../Device/SDK/VzNLSDK/Inc
|
||
|
|
INCLUDEPATH += $$PWD/../../Device/SDK/VzNLSDK/_Inc
|
||
|
|
|
||
|
|
# Include VrCommon for error codes
|
||
|
|
INCLUDEPATH += $$PWD/../../Utils/VrCommon/Inc
|
||
|
|
|
||
|
|
# Include CloudUtils for LaserDataLoader
|
||
|
|
INCLUDEPATH += $$PWD/../../Utils/CloudUtils/Inc
|
||
|
|
|
||
|
|
# Include VrUtils (needed by CloudUtils for VrLog.h)
|
||
|
|
INCLUDEPATH += $$PWD/../../Utils/VrUtils/Inc
|
||
|
|
|
||
|
|
# Our own headers
|
||
|
|
INCLUDEPATH += ./Inc
|
||
|
|
|
||
|
|
# App icon (Windows executable resource)
|
||
|
|
win32 {
|
||
|
|
RC_ICONS = VrVirtualCamera.ico
|
||
|
|
}
|
||
|
|
|
||
|
|
SOURCES += \
|
||
|
|
Src/main.cpp \
|
||
|
|
Src/VrCameraSimulator.cpp \
|
||
|
|
Src/VrVirtualCameraWidget.cpp
|
||
|
|
|
||
|
|
HEADERS += \
|
||
|
|
Inc/VrCameraSimulator.h \
|
||
|
|
Inc/VrVirtualCameraWidget.h
|
||
|
|
|
||
|
|
# Windows: link Winsock + CloudUtils + VrUtils
|
||
|
|
win32:CONFIG(debug, debug|release) {
|
||
|
|
LIBS += -L$$PWD/../../Utils/CloudUtils/debug -lCloudUtils
|
||
|
|
LIBS += -L$$PWD/../../Utils/VrUtils/debug -lVrUtils
|
||
|
|
} else:win32:CONFIG(release, debug|release) {
|
||
|
|
LIBS += -L$$PWD/../../Utils/CloudUtils/release -lCloudUtils
|
||
|
|
LIBS += -L$$PWD/../../Utils/VrUtils/release -lVrUtils
|
||
|
|
}
|
||
|
|
win32 {
|
||
|
|
LIBS += -lws2_32
|
||
|
|
}
|
||
|
|
|
||
|
|
# Unix: link pthread and socket libs
|
||
|
|
unix {
|
||
|
|
LIBS += -lpthread
|
||
|
|
LIBS += -L$$PWD/../../Utils/CloudUtils -lCloudUtils
|
||
|
|
LIBS += -L$$PWD/../../Utils/VrUtils -lVrUtils
|
||
|
|
}
|
||
|
|
|
||
|
|
# Default rules
|
||
|
|
unix {
|
||
|
|
target.path = /usr/bin
|
||
|
|
}
|
||
|
|
!isEmpty(target.path): INSTALLS += target
|