Commit 2d2e187e95cb629bc7ab2a632150244ee72708d0

Authored by Josh Klontz
1 parent ae97da13

added qmake tutorial

openbr/openbr_export.cpp
... ... @@ -28,6 +28,7 @@
28 28 *
29 29 * \section get_started Get Started
30 30 * - \ref installation - \copybrief installation
  31 + * - \ref qmake_integration - \copybrief qmake_integration
31 32 *
32 33 * \section learn_more Learn More
33 34 * - \ref cli - \copybrief cli
... ... @@ -392,6 +393,15 @@ $ br -help
392 393 */
393 394  
394 395 /*!
  396 + * \page qmake_integration QMake Integration
  397 + * \brief Add OpenBR to your Qt <tt>.pro</tt> project.
  398 + *
  399 + * After completing the \ref installation instructions, try launching Qt Creator and opening <tt><path_to_openbr_installation>/share/openbr/qmake_tutorial/hello.pro</tt>.
  400 + *
  401 + * Happy hacking!
  402 + */
  403 +
  404 +/*!
395 405 * \page bee Biometric Evaluation Environment
396 406 * \brief The <i>Biometric Evaluation Environment</i> (BEE) is a <a href="http://www.nist.gov/index.html">NIST</a> standard for evaluating biometric algorithms.
397 407 *
... ...
share/openbr/qmake_tutorial/hello.pro 0 → 100644
  1 +QT += widgets
  2 +
  3 +INCLUDEPATH += ../../../include
  4 +LIBS += -L../../../lib -lopenbr
  5 +
  6 +SOURCES = main.cpp
... ...
share/openbr/qmake_tutorial/main.cpp 0 → 100644
  1 +#include <QApplication>
  2 +#include <QLabel>
  3 +#include <openbr/openbr.h>
  4 +
  5 +int main(int argc, char *argv[])
  6 +{
  7 + QApplication app(argc, argv);
  8 + br_initialize(argc, argv);
  9 +
  10 + QLabel label;
  11 + label.setText("Hello OpenBR!");
  12 + label.show();
  13 +
  14 + int result = app.exec();
  15 + br_finalize();
  16 + return result;
  17 +}
... ...