Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>pull/84/head
parent
0560f24a3b
commit
11a6934bbb
@ -0,0 +1,29 @@
|
|||||||
|
#################################################
|
||||||
|
#
|
||||||
|
# (C) 2022 Michele Calgaro
|
||||||
|
# michele (DOT) calgaro (AT) yahoo (DOT) it
|
||||||
|
#
|
||||||
|
# Improvements and feedback are welcome
|
||||||
|
#
|
||||||
|
# This file is released under GPL >= 2
|
||||||
|
#
|
||||||
|
#################################################
|
||||||
|
|
||||||
|
#################################################
|
||||||
|
#####
|
||||||
|
##### tde_set_project_version
|
||||||
|
|
||||||
|
macro( tde_set_project_version )
|
||||||
|
|
||||||
|
set( DEFAULT_VERSION "R14.1.0~[DEVELOPMENT]" )
|
||||||
|
|
||||||
|
unset( VERSION )
|
||||||
|
|
||||||
|
file( STRINGS ${CMAKE_SOURCE_DIR}/.tdescminfo VERSION_STRING REGEX "^Version:.+$" )
|
||||||
|
string( REGEX REPLACE "^Version: (R[0-9]+\.[0-9]+\.[0-9]+.*)$" "\\1" VERSION "${VERSION_STRING}" )
|
||||||
|
if( NOT VERSION )
|
||||||
|
set( VERSION "${DEFAULT_VERSION}" )
|
||||||
|
endif()
|
||||||
|
|
||||||
|
endmacro( )
|
||||||
|
|
Loading…
Reference in new issue