Skip to content

Commit

Permalink
Fix unittest for autotools configuration after source tree reorganisa…
Browse files Browse the repository at this point in the history
…tion

Now "make check" also works again.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
  • Loading branch information
stweil committed Apr 25, 2018
1 parent 4f9493c commit a2a12a4
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions unittest/Makefile.am
Expand Up @@ -9,20 +9,20 @@ TESTING_DIR=$(shell cd $(top_srcdir) && pwd)/testing
AM_CPPFLAGS += -DTESSDATA_DIR="\"$(TESSDATA_DIR)\""
AM_CPPFLAGS += -DTESTING_DIR="\"$(TESTING_DIR)\""
AM_CPPFLAGS += -DPANGO_ENABLE_ENGINE
AM_CPPFLAGS += -I$(top_builddir)/api
AM_CPPFLAGS += -I$(top_srcdir)/api
AM_CPPFLAGS += -I$(top_srcdir)/arch
AM_CPPFLAGS += -I$(top_srcdir)/ccmain
AM_CPPFLAGS += -I$(top_srcdir)/ccstruct
AM_CPPFLAGS += -I$(top_srcdir)/ccutil
AM_CPPFLAGS += -I$(top_srcdir)/classify
AM_CPPFLAGS += -I$(top_srcdir)/cutil
AM_CPPFLAGS += -I$(top_srcdir)/dict
AM_CPPFLAGS += -I$(top_srcdir)/display
AM_CPPFLAGS += -I$(top_srcdir)/lstm
AM_CPPFLAGS += -I$(top_srcdir)/textord
AM_CPPFLAGS += -I$(top_srcdir)/viewer
AM_CPPFLAGS += -I$(top_srcdir)/wordrec
AM_CPPFLAGS += -I$(top_builddir)/src/api
AM_CPPFLAGS += -I$(top_srcdir)/src/api
AM_CPPFLAGS += -I$(top_srcdir)/src/arch
AM_CPPFLAGS += -I$(top_srcdir)/src/ccmain
AM_CPPFLAGS += -I$(top_srcdir)/src/ccstruct
AM_CPPFLAGS += -I$(top_srcdir)/src/ccutil
AM_CPPFLAGS += -I$(top_srcdir)/src/classify
AM_CPPFLAGS += -I$(top_srcdir)/src/cutil
AM_CPPFLAGS += -I$(top_srcdir)/src/dict
AM_CPPFLAGS += -I$(top_srcdir)/src/display
AM_CPPFLAGS += -I$(top_srcdir)/src/lstm
AM_CPPFLAGS += -I$(top_srcdir)/src/textord
AM_CPPFLAGS += -I$(top_srcdir)/src/viewer
AM_CPPFLAGS += -I$(top_srcdir)/src/wordrec

# Build googletest:
check_LTLIBRARIES = libgtest.la libgtest_main.la
Expand All @@ -33,7 +33,7 @@ libgtest_main_la_SOURCES = ../googletest/googletest/src/gtest_main.cc

# Build unittests
GTEST_LIBS = libgtest.la libgtest_main.la
TESS_LIBS = $(top_builddir)/api/libtesseract.la
TESS_LIBS = $(top_builddir)/src/api/libtesseract.la
AM_CPPFLAGS += -isystem $(top_srcdir)/googletest/googletest/include

check_PROGRAMS = \
Expand Down

0 comments on commit a2a12a4

Please sign in to comment.