Neal Gompa
280779c615
cmake: Correctly set the soversion based on SemVer properties
...
As this project follows Semantic Versioning, the shared object
version should match these semantics.
The two options that make sense here are to have the soversion
set to the version major (so only breaking changes are tracked)
or to set to version major and minor (so breaking and API additions
are tracked).
Since the Windows version of the library already uses version major
and version minor, let's just do this universally.
Fixes: 832926f5af
("Update library version handling for cmake")
Signed-off-by: Neal Gompa <neal@gompa.dev>
2024-09-18 07:44:29 -04:00
Zopolis4
2991d36a8b
Make regular usage of CMAKE_INSTALL_LIBDIR and GNUInstallDirs
2024-06-21 13:09:20 +02:00
Hyogeol Lee
1476a59131
Fix TARGET_PDB_FILE error for static linking.
2024-06-20 18:47:29 +09:00
Zdenko Podobný
4bd125b032
cmake: install pdb files only for MSVC build
2024-06-10 12:43:33 +02:00
zdenop
cb177c059d
cmake: msvc: install also pdb files
2024-06-09 19:27:04 +02:00
Jan Kamlah
577e8a8b93
Add PAGE XML renderer / export ( #4214 )
...
Add PAGE XML export and documentation.
To generate PAGE XML output just add 'page' to the tesseract command.
The output is outputname + '.page.xml' to avoid conflicts with ALTO export.
The output can be customized with the flags:
tessedit_create_page_polygon and tessedit_create_page_wordlevel.
Co-authored-by: Stefan Weil <sw@weilnetz.de>
2024-04-19 21:12:39 +02:00
Stefan Weil
d5e000bc58
Remove unsupported OpenCL code and related API functions ( #4220 )
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2024-04-11 19:15:39 +03:00
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