Any reason why to use an external 3rd party app that is not available on
all platforms instead of cmake native function which is available
everywhere cmake is?

Zdenko


ut 20. 2. 2024 o 18:02 Tom Morris <tfmor...@gmail.com> napísal(a):

> On Monday, February 19, 2024 at 4:49:07 AM UTC-5 raphael.s...@gmail.com
> wrote:
>
> I solved the issue, thanks to the help and suggestions, and explanations,
> I kindly received in StackOverFlow
>
>
> In case someone has a similar issue in the future, the suggestion on
> StackOverflow was to use CMake's INTERFACE_LINK_LIBRARIES property.
>
> ...
> pkg_check_modules(tesseract REQUIRED IMPORTED_TARGET tesseract)
> # pkg-config doesn't know about dependencies of static libraries, so add
> these dependencies manually.
> set_property(TARGET PkgConfig::tesseract APPEND PROPERTY
> INTERFACE_LINK_LIBRARIES curl)
>
> target_link_libraries(BasicExample PUBLIC
>     PkgConfig::tesseract # With that linkage CMake will automatically add
> linkage with curl.
> )
>
> There's more explanation in the StackOverflow answer.
>
> Tom
>
> --
> You received this message because you are subscribed to the Google Groups
> "tesseract-ocr" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to tesseract-ocr+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tesseract-ocr/98aca687-90ae-4e57-a8c4-79356a26eac7n%40googlegroups.com
> <https://groups.google.com/d/msgid/tesseract-ocr/98aca687-90ae-4e57-a8c4-79356a26eac7n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tesseract-ocr+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/CAJbzG8ziUterVtbWgq88Z5JTfp0LwJPCZ4-LeAXJzcW%3DHUWwJg%40mail.gmail.com.

Reply via email to