summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-03-30 21:11:55 +0300
committerAndrei Karas <akaras@inbox.ru>2017-03-30 21:11:55 +0300
commitfec78ac900de7f61b7f08d14ffb526715e7942b0 (patch)
tree8220544b9e1b9816fe79249dd8d73f4c22f11221 /src
parente31cc8b4e05a1d14190c411ae7bd9e240a0809b5 (diff)
downloadmv-fec78ac900de7f61b7f08d14ffb526715e7942b0.tar.gz
mv-fec78ac900de7f61b7f08d14ffb526715e7942b0.tar.bz2
mv-fec78ac900de7f61b7f08d14ffb526715e7942b0.tar.xz
mv-fec78ac900de7f61b7f08d14ffb526715e7942b0.zip
Add configure flag enable-unittestsbin for build unit tests binary but not run it.
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 193d5b8ca..b3482391c 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -20,6 +20,9 @@ else
bin_PROGRAMS =
endif
endif
+if ENABLE_UNITTESTSBIN
+bin_PROGRAMS += manaplustests
+endif
dyecmd_CXXFLAGS = -DPKG_DATADIR=\""$(pkgdatadir)/"\" \
-DLOCALEDIR=\""$(localedir)"\" \
@@ -1932,9 +1935,6 @@ if ENABLE_MANAPLUSGAME
manaplus_SOURCES += ${SRC}
endif
-if ENABLE_UNITTESTS
-TESTS = manaplustests
-check_PROGRAMS = manaplustests
manaplustests_CXXFLAGS = ${manaplus_CXXFLAGS} \
-DUNITTESTS
manaplustests_LDFLAGS =
@@ -2008,8 +2008,11 @@ manaplustests_SOURCES += \
resources/map/maplayer_unittest.cc \
resources/resourcemanager/resourcemanager_unittest.cc \
gui/windowmanager_unittest.cc
-endif
+if ENABLE_UNITTESTS
+TESTS = manaplustests
+check_PROGRAMS = manaplustests
+endif
EXTRA_DIST = CMakeLists.txt \
winver.h.in \