Move src/api/tesseractmain.cpp to src/tesseract.cpp

Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
Stefan Weil 2021-10-31 21:43:30 +01:00
parent c0b529f2e1
commit 104ef8f30e
5 changed files with 8 additions and 8 deletions

View File

@ -362,7 +362,7 @@ else()
include_directories(${Leptonica_INCLUDE_DIRS})
# Check for optional libraries.
find_package(TIFF) # for tesseractmain
find_package(TIFF) # for tesseract
if(NOT TIFF_FOUND AND PKG_CONFIG_EXECUTABLE)
# try PKG_CONFIG to find libtiff if cmake failed
pkg_check_modules(TIFF libtiff-4)
@ -733,10 +733,10 @@ if (WIN32 AND CLANG AND OPENMP_BUILD)
endif()
########################################
# EXECUTABLE tesseractmain
# EXECUTABLE tesseract
########################################
add_executable (tesseract src/api/tesseractmain.cpp)
add_executable (tesseract src/tesseract.cpp)
target_link_libraries (tesseract libtesseract)
if (HAVE_TIFFIO_H AND WIN32)
target_link_libraries (tesseract ${TIFF_LIBRARIES})

View File

@ -718,7 +718,7 @@ endif
# Rules for tesseract executable.
bin_PROGRAMS = tesseract
tesseract_SOURCES = src/api/tesseractmain.cpp
tesseract_SOURCES = src/tesseract.cpp
tesseract_CPPFLAGS =
tesseract_CPPFLAGS += -I$(top_srcdir)/src/arch
tesseract_CPPFLAGS += -I$(top_srcdir)/src/ccstruct

View File

@ -20,7 +20,7 @@ AC_LANG_COMPILER_REQUIRE
CXXFLAGS=${CXXFLAGS:-""}
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_AUX_DIR([config])
AC_CONFIG_SRCDIR([src/api/tesseractmain.cpp])
AC_CONFIG_SRCDIR([src/tesseract.cpp])
AC_PREFIX_DEFAULT([/usr/local])
# Automake configuration. Do not require README file (we use README.md).

View File

@ -1,5 +1,5 @@
/**********************************************************************
* File: tesseractmain.cpp
* File: tesseract.cpp
* Description: Main program for merge of tess and editor.
* Author: Ray Smith
*

4
sw.cpp
View File

@ -20,7 +20,7 @@ void build(Solution &s)
libtesseract -= "src/training/.*"_rr;
libtesseract -=
"src/api/tesseractmain.cpp",
"src/tesseract.cpp",
"src/viewer/svpaint.cpp";
libtesseract.Public += "include"_idir;
@ -109,7 +109,7 @@ void build(Solution &s)
auto &tesseract = tess.addExecutable("tesseract");
{
tesseract += cppstd;
tesseract += "src/api/tesseractmain.cpp";
tesseract += "src/tesseract.cpp";
tesseract += libtesseract;
}