File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -41,5 +41,5 @@ install:
41
41
script :
42
42
- mkdir build
43
43
- cd build
44
- - cmake .. -DLeptonica_DIR=leptonica-master/build
44
+ - cmake .. -DLeptonica_DIR=leptonica-master/build -DBUILD_TRAINING=1
45
45
- make
Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ set(VERSION_PLAIN ${VERSION_MAJOR}.${VERSION_MINOR})
46
46
47
47
find_package (Leptonica 1.72 REQUIRED)
48
48
49
+ if (BUILD_TRAINING)
49
50
find_package (ICU COMPONENTS uc i18n)
50
51
find_package (PkgConfig)
51
52
pkg_check_modules(Pango pango)
@@ -57,6 +58,7 @@ pkg_check_modules(FontConfig fontconfig)
57
58
include_directories (${ICU_INCLUDE_DIRS} )
58
59
include_directories (${Pango_INCLUDE_DIRS} )
59
60
include_directories (${Cairo_INCLUDE_DIRS} )
61
+ endif ()
60
62
61
63
###############################################################################
62
64
#
@@ -212,6 +214,8 @@ target_link_libraries (tesseractmain tesseract)
212
214
213
215
########################################
214
216
217
+ if (BUILD_TRAINING)
215
218
add_subdirectory (training)
219
+ endif ()
216
220
217
221
###############################################################################
You can’t perform that action at this time.
0 commit comments