From 6d3f7abf7fa4502b0de347c69a81e1c65e0cae19 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 12 Feb 2012 01:23:48 +0300 Subject: Add unit tests for stringutils. --- src/Makefile.am | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/Makefile.am') diff --git a/src/Makefile.am b/src/Makefile.am index 62b762af6..3fad9f3ce 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -21,10 +21,6 @@ else manaplus_SOURCES = endif -if ENABLE_UNITTESTS -manaplus_CXXFLAGS += -DUNITTESTS -endif - if USE_INTERNALGUICHAN manaplus_CXXFLAGS += -DUSE_INTERNALGUICHAN manaplus_SOURCES += guichan/include/guichan/actionevent.hpp \ @@ -785,6 +781,11 @@ manaplus_SOURCES += \ mumblemanager.cpp \ mumblemanager.h +if ENABLE_UNITTESTS +manaplus_CXXFLAGS += -DUNITTESTS +manaplus_SOURCES += \ + utils/stringutils_unittest.cc +endif EXTRA_DIST = CMakeLists.txt \ winver.h.in \ -- cgit v1.2.3-70-g09d2