Files
autopilot/tmp/opi_rtsp/opi_rtsp.pro
T
2024-07-04 15:51:04 +03:00

29 lines
958 B
Prolog

QT += core network
QT -= gui
CONFIG += c++11 link_pkgconfig concurrent console
PKGCONFIG += opencv4
MOC_DIR = moc
OBJECTS_DIR = obj
SOURCES = $$PWD/*.cpp
HEADERS = $$PWD/*.h
opi5 {
message("OPI5 build")
PKGCONFIG += opencv4 librga stb libturbojpeg
INCLUDEPATH += /usr/include/rga $$PWD/../../misc/camera/a8_remote
QMAKE_CXXFLAGS += -DOPI5_BUILD
LIBS += /usr/local/lib/librknnrt.so
SOURCES += $$PWD/src-opi5/*.c $$PWD/src-opi5/*.cpp $$PWD/src-opi5/*.cc $$PWD/../../misc/camera/a8_remote/remoteControl.cpp
HEADERS += $$PWD/src-opi5/*.h
} else {
message("ONNX build")
message("You must use YOLOv10 ONNX files")
QMAKE_CXXFLAGS += -DONNX_BUILD
INCLUDEPATH += /opt/onnxruntime-linux-x64-1.18.0/include
LIBS += /opt/onnxruntime-linux-x64-1.18.0/lib/libonnxruntime.so.1.18.0
QMAKE_LFLAGS += -Wl,-rpath,/opt/onnxruntime-linux-x64-1.18.0/lib
SOURCES += $$PWD/src-onnx/*.cpp
HEADERS += $$PWD/src-onnx/*.h
}