summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/CMakeLists.txt3
-rw-r--r--test/Makefile.am2
2 files changed, 5 insertions, 0 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
new file mode 100644
index 00000000..8cc5abe8
--- /dev/null
+++ b/test/CMakeLists.txt
@@ -0,0 +1,3 @@
+add_executable(vorbis_test util.c util.h write_read.c write_read.h test.c)
+target_link_libraries(vorbis_test PRIVATE Vorbis::vorbisenc)
+add_test(NAME vorbis_test COMMAND vorbis_test)
diff --git a/test/Makefile.am b/test/Makefile.am
index b68ebdb1..a9207794 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -12,6 +12,8 @@ AM_CPPFLAGS = -I$(top_srcdir)/include @OGG_CFLAGS@
test_SOURCES = util.c util.h write_read.c write_read.h test.c
test_LDADD = ../lib/libvorbisenc.la ../lib/libvorbis.la @OGG_LIBS@ @VORBIS_LIBS@
+EXTRA_DIST = CMakeLists.txt
+
debug:
$(MAKE) check CFLAGS="@DEBUG@"