mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-24 02:59:07 +08:00
Add BUILD_TRAINING CMake option.
This commit is contained in:
parent
bf36e5200a
commit
b375728012
@ -41,5 +41,5 @@ install:
|
||||
script:
|
||||
- mkdir build
|
||||
- cd build
|
||||
- cmake .. -DLeptonica_DIR=leptonica-master/build
|
||||
- cmake .. -DLeptonica_DIR=leptonica-master/build -DBUILD_TRAINING=1
|
||||
- make
|
||||
|
@ -46,6 +46,7 @@ set(VERSION_PLAIN ${VERSION_MAJOR}.${VERSION_MINOR})
|
||||
|
||||
find_package(Leptonica 1.72 REQUIRED)
|
||||
|
||||
if (BUILD_TRAINING)
|
||||
find_package(ICU COMPONENTS uc i18n)
|
||||
find_package(PkgConfig)
|
||||
pkg_check_modules(Pango pango)
|
||||
@ -57,6 +58,7 @@ pkg_check_modules(FontConfig fontconfig)
|
||||
include_directories(${ICU_INCLUDE_DIRS})
|
||||
include_directories(${Pango_INCLUDE_DIRS})
|
||||
include_directories(${Cairo_INCLUDE_DIRS})
|
||||
endif()
|
||||
|
||||
###############################################################################
|
||||
#
|
||||
@ -212,6 +214,8 @@ target_link_libraries (tesseractmain tesseract)
|
||||
|
||||
########################################
|
||||
|
||||
if (BUILD_TRAINING)
|
||||
add_subdirectory(training)
|
||||
endif()
|
||||
|
||||
###############################################################################
|
||||
|
Loading…
Reference in New Issue
Block a user