mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-27 12:49:35 +08:00
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>
This commit is contained in:
parent
81c47288a2
commit
8209ce3663
@ -41,8 +41,8 @@ set_property(GLOBAL PROPERTY PREDEFINED_TARGETS_FOLDER "CMake Targets")
|
||||
project(tesseract C CXX)
|
||||
|
||||
set(VERSION_MAJOR 4)
|
||||
set(VERSION_MINOR 00)
|
||||
set(VERSION_PLAIN ${VERSION_MAJOR}.${VERSION_MINOR})
|
||||
set(VERSION_MINOR 0)
|
||||
set(VERSION_PLAIN ${VERSION_MAJOR}.${VERSION_MINOR}.0-beta.1)
|
||||
|
||||
set(MINIMUM_LEPTONICA_VERSION 1.74)
|
||||
|
||||
|
@ -121,6 +121,12 @@ set(types_list
|
||||
)
|
||||
check_types(types_list)
|
||||
|
||||
set(PACKAGE_VERSION "${VERSION_PLAIN}")
|
||||
file(APPEND ${AUTOCONFIG_SRC} "
|
||||
/* Version number */
|
||||
#cmakedefine PACKAGE_VERSION \"${VERSION_PLAIN}\"
|
||||
")
|
||||
|
||||
test_big_endian(WORDS_BIGENDIAN)
|
||||
|
||||
file(APPEND ${AUTOCONFIG_SRC} "
|
||||
|
Loading…
Reference in New Issue
Block a user