From 41c480d4f24392fafeb6aa3b1a1275ecc3a4c2f8 Mon Sep 17 00:00:00 2001 From: zdenop Date: Fri, 14 Oct 2022 20:01:36 +0200 Subject: [PATCH] cmake: install common_training and unicharset_training libs --- src/training/CMakeLists.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/training/CMakeLists.txt b/src/training/CMakeLists.txt index f8cc5a07..211e3244 100644 --- a/src/training/CMakeLists.txt +++ b/src/training/CMakeLists.txt @@ -119,6 +119,11 @@ add_library(common_training ${COMMON_TRAINING_SRC}) target_include_directories(common_training PUBLIC common ${CMAKE_CURRENT_BINARY_DIR}) target_link_libraries(common_training PUBLIC libtesseract) +install( + TARGETS common_training + RUNTIME DESTINATION bin + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}) generate_export_header(common_training EXPORT_MACRO_NAME TESS_COMMON_TRAINING_API) project_group(common_training "Training Tools") @@ -265,6 +270,11 @@ if(ICU_FOUND) endif() target_include_directories(unicharset_training PUBLIC unicharset ${CMAKE_CURRENT_BINARY_DIR}) + install( + TARGETS unicharset_training + RUNTIME DESTINATION bin + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}) generate_export_header(unicharset_training EXPORT_MACRO_NAME TESS_UNICHARSET_TRAINING_API) project_group(unicharset_training "Training Tools")