Commit Graph

286 Commits

Author SHA1 Message Date
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
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