diff options
| author | jhurst <jhurst@cinecert.com> | 2018-08-20 00:15:11 +0000 |
|---|---|---|
| committer | jhurst <> | 2018-08-20 00:15:11 +0000 |
| commit | 30dba88305439d4df852bb5149e134739889dc93 (patch) | |
| tree | 771f8275a5b284985a88c0de8e0203bb2467d84b /CMakeLists.txt | |
| parent | 79912d9558b67fb75dfad8bca29d2db1fa58a769 (diff) | |
o Fixes wrong MajorVersion in Preface
o Adds VideoLineMap also to RGBA essence descriptor
o Adds VideoLineMap to RGBA and CDCI descriptor only when option -l
is present (disputable - but distinguished value {0, 0} is not
allowed in closed and complete partitions)
o Fixes issue with IndexRate not set in AS-02 J2K files
o Additional fixes to minor version number in AS-02 partition packs
o CMake brought up to date
o Fixed erroneous WAV RF64 header interpretation
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 3c20140..d75a4d7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,10 +3,13 @@ cmake_minimum_required(VERSION 2.8.12) project(asdcplib) # The version number. -set(VERSION_MAJOR 2) -set(VERSION_MINOR 5) -set(VERSION_PATCH 14) -set(VERSION_STRING ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}) +file(STRINGS configure VERSION_STRING REGEX "PACKAGE_VERSION=.*") +STRING(REGEX REPLACE "(.*)([\n*[.]]+).*" "\\2" ${VERSION_STRING} "${${VERSION_STRING}}") +STRING(REGEX REPLACE "(PACKAGE_VERSION=')(.*)'" "\\2" VERSION_STRING ${VERSION_STRING}) +STRING(REGEX REPLACE "([0-9]+)[.].*" "\\1" VERSION_MAJOR ${VERSION_STRING}) +STRING(REGEX REPLACE ".*[.]([0-9]+)[.].*" "\\1" VERSION_MINOR ${VERSION_STRING}) +STRING(REGEX REPLACE ".*[.]+([0-9]+)" "\\1" VERSION_PATCH ${VERSION_STRING}) +message(STATUS "Version Number is ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}") set_property(GLOBAL PROPERTY USE_FOLDERS ON) set_property(GLOBAL PROPERTY PREDEFINED_TARGETS_FOLDER "Default Targets") # use, i.e. don't skip the full RPATH for the build tree |
