#255: do not compile par-tests if parcheck is disabled

This commit is contained in:
Gokturk Yuksek
2016-08-04 16:38:02 -04:00
committed by Andrey Prygunkov
parent 55fb4df411
commit c741297d84

View File

@@ -217,8 +217,6 @@ nzbget_SOURCES += \
tests/main/CommandLineParserTest.cpp \
tests/main/OptionsTest.cpp \
tests/feed/FeedFilterTest.cpp \
tests/postprocess/ParCheckerTest.cpp \
tests/postprocess/ParRenamerTest.cpp \
tests/postprocess/DupeMatcherTest.cpp \
tests/queue/NzbFileTest.cpp \
tests/nntp/ServerPoolTest.cpp \
@@ -226,6 +224,12 @@ nzbget_SOURCES += \
tests/util/NStringTest.cpp \
tests/util/UtilTest.cpp
if WITH_PAR2
nzbget_SOURCES += \
tests/postprocess/ParCheckerTest.cpp \
tests/postprocess/ParRenamerTest.cpp
endif
AM_CPPFLAGS += \
-I$(srcdir)/lib/catch \
-I$(srcdir)/tests/suite