Stefan Weil
fe420fa718
Require cmake 3.10 or newer ( #3724 )
...
CMakeLists.txt uses TREE (supported since cmake 3.8) and
check_ipo_supported (supported since cmake 3.9).
Require 3.10 which is provided by Ubuntu bionic and newer distributions.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2022-01-16 22:30:08 +02:00
Stefan Weil
5113ed1b71
cmake: TIFF is only used for WIN32
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2022-01-06 20:52:49 +01:00
Piotr Kubaj
790f3bd104
Fix build on non-x86 non-ARM with clang
...
Clang doesn't exit with error on powerpc64* after adding -mfpu=neon,
but merely ignores the argument and prints a warning, which incorrectly
makes it defined as ARM with NEON.
2022-01-06 17:16:09 +01:00
Stefan Weil
68a2aea135
cmake: Add project include paths before others
...
This fixes cmake builds with old tesseract header files in /usr/local.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2022-01-02 14:58:08 +01:00
Stefan Weil
c3c734e5ab
cmake: Fix check for CURL_LIBRARIES
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2022-01-02 14:58:08 +01:00
zdenop
07e319afa8
Cmake install ( #3685 )
...
* cmake: install configs
2021-12-22 21:48:52 +03:00
Zdenko Podobný
03ae6d095d
cmake: fix bcf7bbb6e2
2021-12-20 13:44:51 +01:00
Zdenko Podobný
bcf7bbb6e2
cmake: do not try to even configure training tools if pkg-config is not present.
2021-12-20 13:37:37 +01:00
Zdenko Podobný
8f02255294
cmake: reformat with cmake-format and check with cmake-lint
2021-12-20 13:18:01 +01:00
zdenop
b565cfee9b
cmake: do not try to configure training tools without PkgConfig
2021-12-18 09:29:20 +01:00
zdenop
2ee90ffe08
cmake: remove unused code
2021-12-18 09:20:37 +01:00
Amit D
5fd8bfb5ec
CMake: Also check x86_64 and i686
2021-12-17 11:52:47 +02:00
zdenop
82f510fe1e
cmake: fix fb74c7eac1
2021-12-16 17:59:33 +01:00
pkubaj
fb74c7eac1
Correctly detect amd64 and i386 on FreeBSD
...
FreeBSD uses amd64 and i386 names.
2021-12-02 03:46:41 +00:00
Stefan Weil
371ee2232e
Remove spaces at line endings and empty last lines
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-11-13 22:45:47 +01:00
Stefan Weil
7058bbf282
Move googletest to unittest/third_party/googletest
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-11-01 11:50:50 +01:00
Stefan Weil
104ef8f30e
Move src/api/tesseractmain.cpp to src/tesseract.cpp
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-10-31 21:43:30 +01:00
zdenop
62566abece
cmake: Hide some warnings for MSVC release target
2021-10-28 11:56:22 +02:00
Stefan Weil
282685d531
Enable fast float32 LSTM by default
...
It is still possible to build Tesseract with double LSTM:
# autoconf
./configure --disable-float32
# cmake
cmake .. -DFAST_FLOAT=ON
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-10-27 18:37:27 +02:00
zdenop
c4ad9b7bbf
cmake: fix curl linking if CURL_LIBRARIES is not available
2021-09-25 12:31:05 +02:00
zdenop
da084ea9e6
cmake: fix copy&paste error
2021-09-25 12:26:06 +02:00
zdenop
9a53758bc9
cmake: improve formating
2021-09-25 10:10:38 +02: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
6b4447b931
cmake: remove REQUIRED during finding leptonica library, as we raise FATAL_ERROR later
2021-09-24 20:43:36 +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
2d397a8551
cmake: improve libarchive support - prefer cmake function instead of pkg-config
2021-09-19 11:17:40 +02:00
zdenop
eafbb2b22a
cmake: add option to build with libcurl support
2021-09-19 11:13:21 +02:00
zdenop
ff5f59cf24
cmake: fix cygwin GNU c++ build; fixes #2379
2021-09-19 11:06:19 +02:00
Stefan Weil
7cfcfe1101
cmake: Remove universalambigs.cpp
...
Fixes: 407346246c
("[universalambigs] Use inline variables.")
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-08-23 07:30:03 +02:00
Stefan Weil
95223cfaab
cmake: Link tiff library only for Windows
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-08-07 19:57:24 +02:00
Stefan Weil
d50baec7a7
cmake: Add dotproductneon.cpp
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-08-06 20:55:40 +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
SpaceIm
b2fea77a27
fix cross-build to iOS/tvOS/watchOS
...
On these OS, executables are bundle, and they need a BUNDLE DESTINATION, otherwise CMake configuration fails.
See https://cmake.org/cmake/help/latest/policy/CMP0006.html
2021-07-17 09:29:34 +02:00
Stefan Weil
e0af8d12e6
Fix check for NEON on 32 bit ARM
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-07-03 15:43:10 +02:00
Stefan Weil
4333b2cea3
Use CMAKE_SYSTEM_PROCESSOR to check for SIMD support options ( #3484 )
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-07-02 16:23:58 +03:00
Łukasz Nocuń
38f0fdcd88
Fix CMake Linux build ( #3478 )
2021-06-30 00:16:51 +03:00
OgreTransporter
4d0f027f58
Bugfix OpenMP with Visual Studio ( #3475 )
...
* Bugfix OpenMP with Visual Studio
* Test for working VS2019 update instead of first version of VS2019
2021-06-29 21:06:38 +03:00
Łukasz Nocuń
c583ecef29
Fix permanently disabled optimizations in CMake ( #3467 )
2021-06-24 21:16:23 +03:00
zdenop
53b8cd04ab
fix clang cmake build on windows
2021-04-12 21:41:09 +02:00
Stefan Weil
6ddceac538
Remove mfdefs.cpp from CMakeLists.txt and Makefile.am
...
That file was removed in commit 47715e576a
.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-04-07 17:27:08 +02:00
Stefan Weil
7d70ed4b41
Modernize code for OTSU and reduce public API further
...
Remove thresholder.h from the public API.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-03-23 08:59:04 +01:00
Egor Pugin
73a325494e
[cmake] Require C++17.
2021-03-10 00:41:47 +03:00
Stefan Weil
4902e68682
cmake: Use pkg_config to find required libraries
...
This is needed for cmake builds on MacOS (Intel and Amd64) with Homebrew.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-01-31 17:23:06 +01:00
Stefan Weil
458af8b8d0
cmake: Don't try to set compile flags for NEON support for ARM64
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-01-31 16:54:17 +01:00
Stefan Weil
5d040f91a0
cmake: Activate NEON support for ARM64
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-01-31 16:32:24 +01:00
Shatur95
17dbbd65e2
Fix wrong include
2021-01-30 23:48:12 +02:00
Egor Pugin
15c214be06
Revert "Try to fix aarch64 build on macos."
...
This reverts commit a6321940dc
.
2021-01-11 13:51:35 +03:00
Egor Pugin
c399a6b04e
Try to fix cmake build.
2021-01-11 13:47:55 +03:00
Egor Pugin
a6321940dc
Try to fix aarch64 build on macos.
2021-01-11 12:53:03 +03:00