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:
Stefan Weil 2018-03-18 21:10:07 +01:00 committed by zdenop
parent 81c47288a2
commit 8209ce3663
2 changed files with 8 additions and 2 deletions

View File

@ -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)

View File

@ -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} "