summaryrefslogtreecommitdiff
path: root/src/Makefile.am
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-05-19 01:10:09 +0300
committerAndrei Karas <akaras@inbox.ru>2017-05-19 01:10:09 +0300
commit05f22315081afa26d97ea6efd9892b3bc4a3429d (patch)
treead8b9db3087e8f3bf44598304bdf4a18c2f2e8df /src/Makefile.am
parentfa1b15a140e006966c013e1f5aaefca2afa54a86 (diff)
downloadplus-05f22315081afa26d97ea6efd9892b3bc4a3429d.tar.gz
plus-05f22315081afa26d97ea6efd9892b3bc4a3429d.tar.bz2
plus-05f22315081afa26d97ea6efd9892b3bc4a3429d.tar.xz
plus-05f22315081afa26d97ea6efd9892b3bc4a3429d.zip
Allow select catch or doctest in unit tests binary only compilation.
Diffstat (limited to 'src/Makefile.am')
-rw-r--r--src/Makefile.am19
1 files changed, 13 insertions, 6 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 5f52357ad..1ef983595 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -24,6 +24,19 @@ if ENABLE_UNITTESTSBIN
bin_PROGRAMS += manaplustests
endif
+if ENABLE_UNITTESTS_CATCH
+manaplustests_CXXFLAGS += -DUNITTESTS_CATCH
+endif
+if ENABLE_UNITTESTSBIN_CATCH
+manaplustests_CXXFLAGS += -DUNITTESTS_CATCH
+endif
+if ENABLE_UNITTESTS_DOCTEST
+manaplustests_CXXFLAGS += -DUNITTESTS_DOCTEST
+endif
+if ENABLE_UNITTESTSBIN_DOCTEST
+manaplustests_CXXFLAGS += -DUNITTESTS_DOCTEST
+endif
+
dyecmd_CXXFLAGS = -DPKG_DATADIR=\""$(pkgdatadir)/"\" \
-DLOCALEDIR=\""$(localedir)"\" \
-Wall
@@ -1952,12 +1965,6 @@ endif
manaplustests_CXXFLAGS = ${manaplus_CXXFLAGS} \
-DUNITTESTS
manaplustests_LDFLAGS =
-if ENABLE_UNITTESTS_CATCH
-manaplustests_CXXFLAGS += -DUNITTESTS_CATCH
-endif
-if ENABLE_UNITTESTS_DOCTEST
-manaplustests_CXXFLAGS += -DUNITTESTS_DOCTEST
-endif
if ENABLE_PUGIXML
manaplustests_CXXFLAGS += -DENABLE_PUGIXML
endif