tesseract/training/CMakeLists.txt

172 lines
5.1 KiB
CMake
Raw Normal View History

2015-09-06 18:47:30 +08:00
#
# tesseract
#
if (STATIC)
2015-09-07 01:43:28 +08:00
2015-09-06 18:47:30 +08:00
########################################
# LIBRARY tessopt
########################################
add_library (tessopt tessopt.cpp tessopt.h)
project_group (tessopt "Training Tools")
########################################
# LIBRARY common_training
2015-09-06 18:47:30 +08:00
########################################
set(common_training_src
commandlineflags.cpp
commontraining.cpp
2015-09-06 18:47:30 +08:00
)
set(common_training_hdr
commandlineflags.h
commontraining.h
2015-09-06 18:47:30 +08:00
)
add_library (common_training ${common_training_src} ${common_training_hdr})
target_link_libraries (common_training tessopt)
project_group (common_training "Training Tools")
2015-09-06 18:47:30 +08:00
########################################
# EXECUTABLE ambiguous_words
########################################
add_executable (ambiguous_words ambiguous_words.cpp)
target_link_libraries (ambiguous_words tesseract)
2015-09-06 18:47:30 +08:00
project_group (ambiguous_words "Training Tools")
########################################
# EXECUTABLE classifier_tester
########################################
add_executable (classifier_tester classifier_tester.cpp)
target_link_libraries (classifier_tester tesseract common_training)
2015-09-06 18:47:30 +08:00
project_group (classifier_tester "Training Tools")
########################################
# EXECUTABLE combine_tessdata
########################################
add_executable (combine_tessdata combine_tessdata.cpp)
target_link_libraries (combine_tessdata tesseract)
project_group (combine_tessdata "Training Tools")
########################################
# EXECUTABLE cntraining
########################################
add_executable (cntraining cntraining.cpp)
target_link_libraries (cntraining tesseract common_training)
2015-09-06 18:47:30 +08:00
project_group (cntraining "Training Tools")
########################################
# EXECUTABLE dawg2wordlist
########################################
add_executable (dawg2wordlist dawg2wordlist.cpp)
target_link_libraries (dawg2wordlist tesseract)
2015-09-06 18:47:30 +08:00
project_group (dawg2wordlist "Training Tools")
########################################
# EXECUTABLE mftraining
########################################
add_executable (mftraining mftraining.cpp mergenf.cpp)
target_link_libraries (mftraining tesseract common_training)
2015-09-06 18:47:30 +08:00
project_group (mftraining "Training Tools")
########################################
# EXECUTABLE shapeclustering
2015-09-06 18:47:30 +08:00
########################################
add_executable (shapeclustering shapeclustering.cpp)
target_link_libraries (shapeclustering tesseract common_training)
project_group (shapeclustering "Training Tools")
2015-09-06 18:47:30 +08:00
########################################
# EXECUTABLE unicharset_extractor
2015-09-06 18:47:30 +08:00
########################################
add_executable (unicharset_extractor unicharset_extractor.cpp)
target_link_libraries (unicharset_extractor tesseract tessopt)
project_group (unicharset_extractor "Training Tools")
2015-09-06 18:47:30 +08:00
########################################
# EXECUTABLE wordlist2dawg
2015-09-06 18:47:30 +08:00
########################################
add_executable (wordlist2dawg wordlist2dawg.cpp)
target_link_libraries (wordlist2dawg tesseract)
project_group (wordlist2dawg "Training Tools")
endif(STATIC)
###############################################################################
# UNCHECKED
###############################################################################
if (BUILD_TRAINING)
add_definitions(-DPANGO_ENABLE_ENGINE)
########################################
# LIBRARY training ?
########################################
set(training_src
boxchar.cpp commandlineflags.cpp commontraining.cpp degradeimage.cpp
fileio.cpp ligature_table.cpp normstrngs.cpp pango_font_info.cpp
stringrenderer.cpp tlog.cpp unicharset_training_utils.cpp
2015-09-07 01:43:28 +08:00
)
set(training_hdr
boxchar.h commandlineflags.h commontraining.h degradeimage.h
fileio.h icuerrorcode.h ligature_table.h normstrngs.h
mergenf.h pango_font_info.h stringrenderer.h
tessopt.h tlog.h unicharset_training_utils.h util.h
)
add_library (training ${training_src} ${training_hdr})
project_group (training "Training Tools")
2015-09-06 18:47:30 +08:00
########################################
# EXECUTABLE set_unicharset_properties ?
2015-09-06 18:47:30 +08:00
########################################
add_executable (set_unicharset_properties
set_unicharset_properties.cpp
unicharset_training_utils.cpp
)
target_link_libraries (set_unicharset_properties tesseract common_training ${ICU_LIBRARIES})
project_group (set_unicharset_properties "Training Tools")
2015-09-06 18:47:30 +08:00
########################################
# EXECUTABLE text2image ?
2015-09-06 18:47:30 +08:00
########################################
add_executable (text2image text2image.cpp)
target_link_libraries (text2image tesseract training tessopt
${ICU_LIBRARIES}
${Pango_LIBRARIES}
${Cairo_LIBRARIES}
${PangoCairo_LIBRARIES}
${PangoFt2_LIBRARIES}
${FontConfig_LIBRARIES}
)
project_group (text2image "Training Tools")
2015-09-06 18:47:30 +08:00
endif(BUILD_TRAINING)
2015-09-06 18:47:30 +08:00
###############################################################################