[aravis] tests: check if aravis headers are c++ compatible.



commit dcd1057992549f6b82a1f99def16937d4f678cc3
Author: Emmanuel Pacaud <emmanuel gnome org>
Date:   Wed May 25 20:35:08 2011 +0200

    tests: check if aravis headers are c++ compatible.

 configure.ac      |    1 +
 tests/.gitignore  |    1 +
 tests/Makefile.am |    4 +++-
 tests/cpp.cc      |    9 +++++++++
 4 files changed, 14 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index dd21f18..5998b2b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -19,6 +19,7 @@ AC_SUBST([ARAVIS_API_VERSION], [0.2])
 
 AC_SEARCH_LIBS([strerror],[cposix])
 AC_PROG_CC
+AC_PROG_CXX
 
 AC_HEADER_STDC
 
diff --git a/tests/.gitignore b/tests/.gitignore
index 501e18d..f88817c 100644
--- a/tests/.gitignore
+++ b/tests/.gitignore
@@ -2,6 +2,7 @@ evaluator
 genicam
 buffer
 fake
+cpp
 arv-test
 arv-genicam-test
 arv-evaluator-test
diff --git a/tests/Makefile.am b/tests/Makefile.am
index dd33095..895e799 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -23,7 +23,7 @@ arv_zip_test_LDADD = $(test_progs_ldadd)
 arv_camera_test_SOURCES = arvcameratest.c
 arv_camera_test_LDADD = $(test_progs_ldadd)
 
-TEST_PROGS += evaluator buffer fake
+TEST_PROGS += evaluator buffer fake cpp
 
 noinst_PROGRAMS += $(TEST_PROGS)
 
@@ -37,3 +37,5 @@ fake_SOURCES = fake.c
 fake_CFLAGS = -DGENICAM_FILENAME="\"$(top_srcdir)/src/arv-fake-camera.xml\""
 fake_LDADD = $(test_progs_ldadd)
 
+cpp_SOURCES = cpp.cc
+cpp_LDADD = $(test_progs_ldadd)
diff --git a/tests/cpp.cc b/tests/cpp.cc
new file mode 100644
index 0000000..7bd4a70
--- /dev/null
+++ b/tests/cpp.cc
@@ -0,0 +1,9 @@
+#include <arv.h>
+
+/* Dump test program, just to make sure aravis headers are c++ compatible */
+
+int
+main (int argc, char **argv)
+{
+	return 0;
+}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]