zdenop
54b9fe4de9
cmake: check_leptonica_tiff_support() works with cmake>=3.25
2023-07-15 19:43:50 +02:00
hesmar
d7c071197e
Disable -mfpu=neon for aarch64
...
Disable -mfpu command line argument on aarch64, because it is not available in gcc (aarch64)
2023-07-11 16:29:39 +02:00
luzpaz
cf235ccfed
Fix typos
...
Found via `codespell -q 3 -L bu,eiter,fo,fpr,inout,numer,pixes,thisy`
2023-07-08 08:35:27 +02:00
zdenop
58b75b3fd9
cmake: check if leptonica was build with tiff support
2023-05-10 22:09:49 +02:00
zdenop
d999957fae
cmake: provide info about disabled LibArchive and CURL
2023-05-09 21:52:21 +02:00
zdenop
37a9fa9550
cmake: allow to disable tiff (-DDISABLE_TIFF=ON)
2023-05-09 21:51:05 +02:00
zdenop
8045cbb7c9
cmake: adjust build to autotool settings
2023-03-27 19:22:28 +02:00
zdenop
426ed87c97
cmake: improve NEON build
2023-03-27 19:20:11 +02:00
zdenop
691de2b945
cmake: sync with autotools (OPENMP_SIMD, fast-math)
2023-03-23 20:21:34 +01:00
zdenop
484d427c67
cmake: improve style
2023-03-23 20:20:51 +01:00
Zdenko Podobný
f779c434b0
cmake: disable "-march=native" by default
2023-03-23 12:55:51 +01:00
autoantwort
1c09782354
msvc debug: fix wrong lib name in generated pkgconfig file ( #4008 )
2023-01-31 15:30:45 +01:00
Zdenko Podobný
f25196151b
cmake - msvc/openmp: clean&document configuration
2022-12-15 13:26:56 +01:00
Zdenko Podobný
f2f37a8323
cmake - mscvc: silent warning C4068: unknown pragma 'GCC'
2022-12-15 13:25:43 +01:00
zdenop
954c5413c1
cmake: we can build training tools without PkgConfig
2022-11-01 18:54:19 +01:00
zdenop
a96b2abb1a
Merge branch 'main' into improve-build-for-android-integrate-with-cpu_features-library
2022-06-23 16:43:37 +02:00
zdenop
5e053f3c72
cmake: report build arch
2022-04-15 14:32:07 +02:00
zdenop
a0354010b2
cmake:fix typo
2022-04-15 14:31:40 +02:00
Stefan Weil
b0d82879e5
Add initial support for Intel AVX512F
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2022-04-14 23:47:04 +02:00
zdenop
c5007c082b
cmake: fix OpenCL build
2022-03-19 11:52:57 +01:00
zdenop
9f278588eb
Update CMakeLists.txt
2022-03-11 12:58:03 +01:00
Zdenko Podobný
db8a7ad06b
cmake: turn off LTO
2022-03-11 07:34:22 +01:00
Zdenko Podobný
63f2d89271
cmake: enable link-time optimization by default
2022-03-10 16:24:06 +01:00
Zdenko Podobný
bd52461f2a
cmake: hide more msvc warnings
2022-03-10 10:11:01 +01:00
Zdenko Podobný
9996de02b3
cmake: skip simd compiler option test for MSVC
2022-03-10 10:09:59 +01:00
Zdenko Podobný
699c1538fb
cmake: disable unused checks
2022-03-10 10:02:25 +01:00
Egor Pugin
30ebb31f1f
[cmake] Indent.
2022-02-20 02:16:55 +03:00
Egor Pugin
624e5cd808
[cmake] Indent.
2022-02-20 02:16:15 +03:00
Transporter
c2a69a62af
Check OpenMP target in CMake (issue #3751 )
2022-02-09 10:12:14 +01:00
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
leleliu008
12cd761ff6
fix for that motioned in https://github.com/tesseract-ocr/tesseract/issues/3680
...
Reference:
https://github.com/Kitware/CMake/blob/master/Modules/Platform/Android-Determine.cmake
https://android.googlesource.com/platform/ndk/+/master/build/cmake/android.toolchain.cmake
https://developer.android.com/ndk/guides/cpu-features#the_google_cpu_features_library
https://github.com/google/cpu_features#android-ndks-drop-in-replacement
2021-12-19 00:02:28 +08: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