]> sigrok.org Git - libsigrokflow.git/blobdiff - Makefile.am
tests/init: Multiple Srf::init() calls should throw.
[libsigrokflow.git] / Makefile.am
index 1dd7f307564d3387ffa691cd2d714e476bb5b089..533813a95ea127b19fc87a5132d419ad42e397f4 100644 (file)
@@ -21,7 +21,7 @@ ACLOCAL_AMFLAGS = -I m4
 AM_LIBTOOLFLAGS = --silent
 GNUMAKEFLAGS = --no-print-directory
 
-AM_CPPFLAGS = -Iinclude -I$(srcdir)/include -I$(srcdir)/src -I.
+AM_CPPFLAGS = -Iinclude -I$(srcdir)/include -I$(srcdir)/src -I$(srcdir)/tests -I.
 
 AM_CXXFLAGS = $(SRF_WXXFLAGS) $(LIBSIGROKFLOW_CFLAGS)
 
@@ -40,6 +40,16 @@ library_include_HEADERS = \
 pkgconfigdir = $(libdir)/pkgconfig
 pkgconfig_DATA = libsigrokflow.pc
 
+TESTS = tests/main
+check_PROGRAMS = tests/main
+
+tests_main_SOURCES = \
+       include/libsigrokflow/libsigrokflow.hpp \
+       tests/main.cpp \
+       tests/init.cpp
+
+tests_main_LDADD = libsigrokflow.la $(LIBSIGROKFLOW_LIBS)
+
 .PHONY: dist-changelog
 
 dist-hook: dist-changelog