]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
we want to build tests/libntp even if no GTEST
authorDamir Tomic <viperus@ntp.org>
Tue, 26 May 2015 09:36:31 +0000 (09:36 +0000)
committerDamir Tomic <viperus@ntp.org>
Tue, 26 May 2015 09:36:31 +0000 (09:36 +0000)
bk: 55643e9f6V7DhM4DgT9VgU3gSVudLA

tests/Makefile.am
tests/libntp/Makefile.am

index 5c3d24ea2538cb8331c9752ce4b39c2bf87b4f13..790326ca2809275368dc0060536d89f8213caebb 100644 (file)
@@ -2,12 +2,14 @@ NULL =
 SUBDIRS = 
 
 if GTEST_AVAILABLE
-SUBDIRS +=     libntp  \
-               ntpd    \
-               $(NULL)
+SUBDIRS +=     \
+       ntpd    \
+       $(NULL)
 endif
 
-SUBDIRS +=     bug-2803        \
-               sandbox         \
-               $(NULL)
+SUBDIRS +=             \
+       bug-2803        \
+       libntp          \
+       sandbox         \
+       $(NULL)
 
index d5712de757d1a817dd5a12ef07315da38b5b8a00..2c9bd6fe9abe747c63bcc9080abbbedf3e2dc70f 100644 (file)
@@ -4,7 +4,12 @@ CLEANFILES =
 
 run_unity =    cd $(srcdir) && ruby ../../sntp/unity/auto/generate_test_runner.rb
 
-check_PROGRAMS = test-libntp tests
+check_PROGRAMS = test-libntp
+if GTEST_AVAILABLE
+check_PROGRAMS += tests
+else
+EXTRA_PROGRAMS = tests
+endif
 
 LDADD =                                        \
        $(top_builddir)/libntp/libntp.a \