Add test program for C++ support
So that we don't regress
This commit is contained in:
parent
ff842125c5
commit
6bfc516553
3 changed files with 16 additions and 1 deletions
|
@ -9,6 +9,7 @@ AC_PROG_CC
|
|||
AC_PROG_LIBTOOL
|
||||
AC_C_INLINE
|
||||
AM_PROG_CC_C_O
|
||||
AC_PROG_CXX
|
||||
AC_DEFINE([_GNU_SOURCE], [], [Use GNU extensions])
|
||||
|
||||
# Library versioning
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
INCLUDES = -I$(top_srcdir)
|
||||
noinst_PROGRAMS = verify_live enroll verify img_capture
|
||||
noinst_PROGRAMS = verify_live enroll verify img_capture cpp-test
|
||||
|
||||
verify_live_SOURCES = verify_live.c
|
||||
verify_live_LDADD = ../libfprint/libfprint.la
|
||||
|
@ -13,6 +13,9 @@ verify_LDADD = ../libfprint/libfprint.la
|
|||
img_capture_SOURCES = img_capture.c
|
||||
img_capture_LDADD = ../libfprint/libfprint.la
|
||||
|
||||
cpp_test_SOURCES = cpp-test.cpp
|
||||
cpp_test_LDADD = ../libfprint/libfprint.la
|
||||
|
||||
if BUILD_X11_EXAMPLES
|
||||
noinst_PROGRAMS += img_capture_continuous
|
||||
|
||||
|
|
11
examples/cpp-test.cpp
Normal file
11
examples/cpp-test.cpp
Normal file
|
@ -0,0 +1,11 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include <libfprint/fprint.h>
|
||||
|
||||
int main (int argc, char **argv)
|
||||
{
|
||||
fp_init ();
|
||||
return 0;
|
||||
}
|
Loading…
Reference in a new issue