Added new qmake config option which enables real gimbal camera

Gimbal camera can be enabled and used for example with command:
qmake6 CONFIG+=gimbal && make && ./rtsp_ai_player ~/azaion/models/onnx/yolov8m.onnx
This commit is contained in:
Tuomas Järvinen
2024-07-27 11:53:26 +03:00
parent 7052a05d55
commit ba810592b5
4 changed files with 28 additions and 6 deletions
+9 -2
View File
@@ -4,9 +4,16 @@ CONFIG += c++11 concurrent console
MOC_DIR = moc
OBJECTS_DIR = obj
SOURCES = $$PWD/*.cpp $$PWD/../../misc/camera/a8_remote/remoteControl.cpp
SOURCES = $$PWD/*.cpp
HEADERS = $$PWD/*.h
INCLUDEPATH += $$PWD/../../misc/camera/a8_remote
gimbal {
message("Using real gimbal camera.")
QMAKE_CXXFLAGS += -DGIMBAL
}
else {
message("Not using real gimbal camera.")
}
opi5 {
message("OPI5 build")