zdenop
c5007c082b
cmake: fix OpenCL build
2022-03-19 11:52:57 +01:00
Zdenko Podobný
699c1538fb
cmake: disable unused checks
2022-03-10 10:02:25 +01:00
Gilles Talis
be15b46c60
Check if platform supports feenableexcept
...
feenableexcept is not supported by uclibc
Signed-off-by: Gilles Talis <gilles.talis@gmail.com>
[Retrieved (and updated to add cmake support and simplify configure.ac)
from
https://git.buildroot.net/buildroot/tree/package/tesseract-ocr/0001-Check-if-platform-supports-feenableexcept.patch ]
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
2022-01-11 15:23:56 +01:00
zdenop
2ee90ffe08
cmake: remove unused code
2021-12-18 09:20:37 +01:00
Robert Pösel
362ed9b5e7
cmake: Improve configuration
...
- Use correct library name in TesseractConfig.cmake on all platforms
- Expose Tesseract_VERSION and Tesseract_VERSION_* variables in TesseractConfig.cmake
2021-09-24 22:15:46 +02:00
zdenop
19cc9afb25
cmake: add Tesseract_LIBRARY_DIRS
2021-09-19 18:34:24 +02:00
zdenop
89d86d6eee
cmake: improve configuration,
...
prefer find_package instead of PKG_CONFIG for leptonica and tiff
2021-09-19 18:28:45 +02:00
zdenop
eafbb2b22a
cmake: add option to build with libcurl support
2021-09-19 11:13:21 +02:00
Robert Pösel
d7528e7cea
Fix linking Tesseract to project using CMake on Linux
...
In the past Tesseract library was wrongly named as "liblibtesseract" so it was needed to use "-llibtesseract" as argument for linker. The name was fixed in commit 52cac3a42e
but the ${Tesseract_LIBRARIES} variable still wrongly holds "libtesseract" and causes linker error when one is using it in target_link_libraries(...). This commit fixes that.
2021-09-17 21:35:30 +02:00
Stefan Weil
4dcd8fa591
Fix handling of TESSDATA_PREFIX containing // (fixes issue #3527 )
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-08-24 20:05:54 +02:00
zdenop
7975fec2fd
Add new cmake option -DFAST_FLOAT=ON for faster LSTM with float ( #3514 )
...
Co-authored-by: Stefan Weil <sw@weilnetz.de>
2021-08-05 21:35:54 +02:00
Shatur95
068b79052f
Fix typo
2020-12-11 18:39:13 +02:00
Shatur95
8719498c19
Locate CMake config files without subfolder
2020-12-11 18:24:51 +02:00
Shatur95
30e2516337
Use find_dependency instead of find_package
2020-12-11 18:05:09 +02:00
Shatur95
80147735db
Fix CMake targets path
2020-11-18 02:01:55 +02:00
Shatur95
a0f43ca03c
Generate imported target automatically
2020-10-08 01:16:01 +03:00
Shatur95
c8a164b1fb
Modernize CMake config files
2020-10-08 00:51:44 +03:00
zdenop
30fcec3081
cmake: remove custom CheckCCompilerFlag/CheckCXXCompilerFlag
2020-06-30 20:47:31 +02:00
Stefan Weil
0a63484644
Remove checks for unused types off_t, mbstate_t, _Bool
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-06-21 12:04:16 +02:00
Stefan Weil
958b90d785
Don't check for unused sys/wait.h
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-06-20 11:01:20 +02:00
Stefan Weil
a1aea84a27
Don't check for unused sys/shm.h and sys/ipc.h
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-06-20 10:59:54 +02:00
Stefan Weil
fd30c86674
Remove endianness test (WORDS_BIGENDIAN is unused)
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-06-20 10:47:00 +02:00
Stefan Weil
c1494fb710
Don't check for stdbool.h (only used in capi.h)
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-06-20 10:42:28 +02:00
Stefan Weil
d4cf77c92b
Don't check for limits.h (now unused)
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-06-20 10:39:13 +02:00
Stefan Weil
a1d161326e
Don't check for unused malloc.h
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-06-19 07:30:00 +02:00
Stefan Weil
674d6a90d8
Remove code for embedded build
...
That code is unrelated to Tesseract and can be easily implemented
by external projects which require it.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-06-17 09:55:33 +02:00
zdenop
e44c60c3b2
cmake: respect -DTESSDATA_PREFIX=/path (on linux)
2019-05-25 08:31:26 +02:00
Zdenko Podobný
3f4dcf3c8b
cmake: uninstall target
2019-05-08 19:19:26 +02:00
zdenop
21838b0e7a
cmake: add detection of AVX, AVX2, SSE41
2019-04-22 09:05:55 +02:00
zdenop
8891ba9711
add autotools options to cmake build
2019-03-17 14:50:36 +01:00
Stefan Weil
b3327f4e90
Remove unneeded checks for snprintf
...
snprintf is a standard function which should be available
on all relevant platforms, so those checks are unnecessary.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-02-13 08:04:52 +01:00
zdenop
fd881e4486
fix cmake PACKAGE_VERSION to behave same way as in autotools
2019-01-29 20:01:55 +01:00
zdenop
cbef2ebe12
implement patches vcpkg tesseract
2018-11-08 21:37:47 +01:00
Zdenko Podobný
2dd753ee4c
replace VS implementation of gettimeofday with std::chrono::steady_clock::now(); fixes #2038
2018-11-08 19:43:46 +01:00
Stefan Weil
4bbebd3f7e
Remove tests for function getline
...
The Tesseract code does not use getline.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-07-19 16:19:58 +02:00
Stefan Weil
0efc528684
Remove unneeded include statements for string / strings.h
...
Tesseract code does not use strings.h (strngs.h was once called strings.h),
so that dependency can also be removed from cmake and cppan configuration.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-04-30 18:16:34 +02:00
Stefan Weil
8209ce3663
cmake: Update version and add it to config_auto.h ( #1402 )
...
In a next step, the package version should be read from the VERSION file.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-03-18 21:10:07 +01:00
Egor Pugin
000d027a9f
Rename tesseract library.
2018-01-05 18:51:35 +03:00
Egor Pugin
9f763e5466
Update SourceGroups.cmake
2016-12-15 14:11:47 +03:00
Egor Pugin
644469595c
Fix windows build.
2016-11-24 17:32:23 +03:00
Ray Smith
dd216f69e7
Added more missing license headers
2016-11-18 15:56:43 -08:00
Egor Pugin
5199957ae7
Update Configure.cmake
...
Move tiff library header from standard header list.
2016-07-17 13:58:33 +03:00
Egor Pugin
553c069608
Remove unused defines.
2016-07-03 23:34:14 +03:00
Egor Pugin
b48abd8e17
Improve leptonica search.
2016-01-26 14:52:18 +03:00
Felix Janda
87c21aaa5c
Detect presence of 'off_t' by configure test
2015-10-31 11:54:37 +01:00
Egor Pugin
8e157dbb7e
Fix build.
2015-10-09 18:18:02 +03:00
Egor Pugin
dfb5aa5c34
Add Leptonica_BUILD_DIR option for CMake find_package in Config mode. Set correct .so name on Linux.
2015-10-09 18:12:02 +03:00
Egor Pugin
93d1c66e4e
Add FindLeptonica.cmake module to find installed liblept on *nix systems.
2015-10-05 22:33:10 +03:00
Egor Pugin
03531ba8a5
Fix linux build.
2015-09-06 20:43:28 +03:00
Egor Pugin
5e3b8d33e3
Add source groups.
2015-09-06 13:47:30 +03:00