File tree 2 files changed +19
-6
lines changed
2 files changed +19
-6
lines changed Original file line number Diff line number Diff line change @@ -3,9 +3,14 @@ local_settings:
3
3
# generator: Visual Studio 14 2015 Win64
4
4
silent : false
5
5
# copy_import_libs: true
6
- build :
7
- c_flags : /W0
8
- cxx_flags : /W0
6
+ # build:
7
+ # c_flags: /W0
8
+ # cxx_flags: /W0
9
+ builds :
10
+ vs2017 :
11
+ generator : Visual Studio 15 2017
12
+ vs2017_64 :
13
+ generator : Visual Studio 15 2017 Win64
9
14
10
15
dependencies :
11
16
pvt.cppan.demo.danbloomberg.leptonica : 1
Original file line number Diff line number Diff line change @@ -228,13 +228,15 @@ if (NOT CPPAN_BUILD)
228
228
find_package (PkgConfig)
229
229
endif ()
230
230
231
- if (PKG_CONFIG_FOUND)
231
+ if (PKG_CONFIG_FOUND OR CPPAN_BUILD )
232
232
233
+ if (PKG_CONFIG_FOUND)
233
234
pkg_check_modules(Pango REQUIRED pango)
234
235
pkg_check_modules(Cairo REQUIRED cairo)
235
236
pkg_check_modules(PangoFt2 REQUIRED pangoft2)
236
237
pkg_check_modules(PangoCairo REQUIRED pangocairo)
237
238
pkg_check_modules(FontConfig REQUIRED fontconfig)
239
+ endif ()
238
240
239
241
set (text2image_src
240
242
text2image.cpp
@@ -260,18 +262,24 @@ set(text2image_src ${text2image_src} ../vs2010/port/strcasestr.cpp)
260
262
endif ()
261
263
262
264
add_executable (text2image ${text2image_src} )
265
+ target_link_libraries (text2image unicharset_training)
266
+ if (PKG_CONFIG_FOUND)
263
267
target_include_directories (text2image BEFORE PRIVATE ${Cairo_INCLUDE_DIRS} ${Pango_INCLUDE_DIRS} )
264
268
target_compile_definitions (text2image PRIVATE -DPANGO_ENABLE_ENGINE)
265
- target_link_libraries (text2image libtesseract unicharset_training
269
+ target_link_libraries (text2image
266
270
${Pango_LIBRARIES}
267
271
${Cairo_LIBRARIES}
268
272
${PangoCairo_LIBRARIES}
269
273
${PangoFt2_LIBRARIES}
270
274
${FontConfig_LIBRARIES}
271
275
)
276
+ endif ()
277
+ if (CPPAN_BUILD)
278
+ target_link_libraries (text2image pvt.cppan.demo.gnome.pango.pangocairo)
279
+ endif ()
272
280
project_group (text2image "Training Tools" )
273
281
274
- endif (PKG_CONFIG_FOUND )
282
+ endif ()
275
283
endif (ICU_FOUND)
276
284
277
285
###############################################################################
You can’t perform that action at this time.
0 commit comments