QT5下的caffe项目属性

时间:2022-07-03 20:58:20


TEMPLATE = app
CONFIG += console c++11
CONFIG -= app_bundle
CONFIG -= qt

SOURCES += /home/aimhabo/caffe/examples/lenet_classification/classification.cpp

DEFINES += USE_OPENCV

INCLUDEPATH += \
    /usr/local/include \
    /usr/local/include/opencv \
    /usr/local/include/opencv2 \
    /usr/local/cuda-9.1/include \
    /home/aimhabo/caffe/include \
    /home/aimhabo/caffe/include/caffe/src \
    /home/aimhabo/caffe/include /caffe/include \
    /home/aimhabo/caffe/build/src

LIBS += \
    /usr/local/lib/x86_64-linux-gnu/libopencv_world.so \
    /usr/local/lib/x86_64-linux-gnu/libopencv_img_hash.so \
    -L/usr/local/cuda-9.1/lib64 \
    /home/aimhabo/caffe/build/lib/libcaffe.so

LIBS += -lglog -lgflags -lprotobuf -lboost_system -lboost_thread -llmdb -lleveldb -lstdc++ -lcblas -latlas