diff --git a/CMakeLists.txt b/CMakeLists.txt index db6071b4..628a5fd8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -322,6 +322,7 @@ install(FILES api/baseapi.h api/capi.h api/renderer.h + ${CMAKE_CURRENT_BINARY_DIR}/api/tess_version.h #from arch/makefile.am arch/dotproductavx.h diff --git a/api/Makefile.am b/api/Makefile.am index 855b7443..2e33ceba 100644 --- a/api/Makefile.am +++ b/api/Makefile.am @@ -5,7 +5,7 @@ AM_CPPFLAGS += -DLOCALEDIR=\"$(localedir)\"\ -I$(top_srcdir)/textord -I$(top_srcdir)/dict \ -I$(top_srcdir)/classify -I$(top_srcdir)/ccmain \ -I$(top_srcdir)/wordrec -I$(top_srcdir)/cutil \ - -I$(top_srcdir)/opencl + -I$(top_srcdir)/opencl -I$(top_builddir)/api AM_CPPFLAGS += $(OPENCL_CPPFLAGS) @@ -13,7 +13,7 @@ if VISIBILITY AM_CPPFLAGS += -fvisibility=hidden -fvisibility-inlines-hidden endif -include_HEADERS = apitypes.h baseapi.h capi.h renderer.h +include_HEADERS = apitypes.h baseapi.h capi.h renderer.h tess_version.h lib_LTLIBRARIES = noinst_LTLIBRARIES = libtesseract_api.la diff --git a/api/baseapi.h b/api/baseapi.h index 4263445e..6a7a4e81 100644 --- a/api/baseapi.h +++ b/api/baseapi.h @@ -24,6 +24,7 @@ // To avoid collision with other typenames include the ABSOLUTE MINIMUM // complexity of includes here. Use forward declarations wherever possible // and hide includes of complex types in baseapi.cpp. +#include "tess_version.h" #include "apitypes.h" #include "pageiterator.h" #include "platform.h" diff --git a/training/Makefile.am b/training/Makefile.am index 0c80b18f..a37239f8 100644 --- a/training/Makefile.am +++ b/training/Makefile.am @@ -7,7 +7,8 @@ AM_CPPFLAGS += \ -I$(top_srcdir)/viewer \ -I$(top_srcdir)/textord -I$(top_srcdir)/dict \ -I$(top_srcdir)/classify -I$(top_srcdir)/display \ - -I$(top_srcdir)/wordrec -I$(top_srcdir)/cutil + -I$(top_srcdir)/wordrec -I$(top_srcdir)/cutil \ + -I$(top_builddir)/api EXTRA_DIST = language-specific.sh tesstrain.sh tesstrain_utils.sh