diff --git a/openbr/openbr_export.cpp b/openbr/openbr_export.cpp index 1bde615..dd6fe86 100644 --- a/openbr/openbr_export.cpp +++ b/openbr/openbr_export.cpp @@ -28,6 +28,7 @@ * * \section get_started Get Started * - \ref installation - \copybrief installation + * - \ref qmake_integration - \copybrief qmake_integration * * \section learn_more Learn More * - \ref cli - \copybrief cli @@ -392,6 +393,15 @@ $ br -help */ /*! + * \page qmake_integration QMake Integration + * \brief Add OpenBR to your Qt .pro project. + * + * After completing the \ref installation instructions, try launching Qt Creator and opening /share/openbr/qmake_tutorial/hello.pro. + * + * Happy hacking! + */ + +/*! * \page bee Biometric Evaluation Environment * \brief The Biometric Evaluation Environment (BEE) is a NIST standard for evaluating biometric algorithms. * diff --git a/share/openbr/qmake_tutorial/hello.pro b/share/openbr/qmake_tutorial/hello.pro new file mode 100644 index 0000000..4c0494b --- /dev/null +++ b/share/openbr/qmake_tutorial/hello.pro @@ -0,0 +1,6 @@ +QT += widgets + +INCLUDEPATH += ../../../include +LIBS += -L../../../lib -lopenbr + +SOURCES = main.cpp diff --git a/share/openbr/qmake_tutorial/main.cpp b/share/openbr/qmake_tutorial/main.cpp new file mode 100644 index 0000000..e0864bb --- /dev/null +++ b/share/openbr/qmake_tutorial/main.cpp @@ -0,0 +1,17 @@ +#include +#include +#include + +int main(int argc, char *argv[]) +{ + QApplication app(argc, argv); + br_initialize(argc, argv); + + QLabel label; + label.setText("Hello OpenBR!"); + label.show(); + + int result = app.exec(); + br_finalize(); + return result; +}