Source
69
69
include( config )
70
70
include( ui )
71
71
include( target )
72
72
include( CASA )
73
73
74
74
set( CASA_VERSION_MAJOR 5 )
75
75
set( CASA_VERSION_MINOR 5 )
76
76
set( CASA_VERSION_PATCH 0 )
77
77
set( CASA_VERSION_FEATURE 0 CACHE STRING "feature version" )
78
78
set( CASA_VERSION_DESC "" )
79
+
# CASA/ALMA/VLA etc...
80
+
set( CASA_VARIANT "" )
79
81
80
82
if( CASA_VERSION_FEATURE STREQUAL "0" )
81
83
execute_process( COMMAND svn info
82
84
RESULT_VARIABLE SVNINFOSTATUS
83
85
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} )
84
86
85
87
### hash-bound git will need another solution
86
88
if ( ${SVNINFOSTATUS} STREQUAL "0" )
87
89
execute_process( COMMAND svnversion
88
90
OUTPUT_VARIABLE SUBVERSION_REVISION
97
99
else( )
98
100
execute_process( COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/install/resolvegitrevision.pl
99
101
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
100
102
OUTPUT_VARIABLE CASA_VERSION_FEATURE_AND_BRANCH_TAG # Getting a list
101
103
OUTPUT_STRIP_TRAILING_WHITESPACE )
102
104
message("resolvegitrevision: ${CASA_VERSION_FEATURE_AND_BRANCH_TAG}")
103
105
list(LENGTH CASA_VERSION_FEATURE_AND_BRANCH_TAG len)
104
106
message(STATUS "len = ${len}")
105
107
list ( GET CASA_VERSION_FEATURE_AND_BRANCH_TAG 0 CASA_VERSION_FEATURE)
106
108
list ( GET CASA_VERSION_FEATURE_AND_BRANCH_TAG 1 BRANCH_TAG)
109
+
list ( GET CASA_VERSION_FEATURE_AND_BRANCH_TAG 2 CASA_VARIANT)
107
110
message("CASA_VERSION_FEATURE: ${CASA_VERSION_FEATURE}")
108
111
message("CASA_VERSION_DESC: ${BRANCH_TAG}")
112
+
message("CASA_VARIANT: ${CASA_VARIANT}")
109
113
set(CASA_VERSION_DESC " ${BRANCH_TAG}")
110
114
endif( )
111
115
endif( )
112
116
113
117
set( CASA_API_VERSION "${CASA_VERSION_MAJOR}.${CASA_VERSION_MINOR}.${CASA_VERSION_PATCH}-${CASA_VERSION_FEATURE}" )
114
118
string(TIMESTAMP COMPILE_TIME "%Y-%m-%d %H:%M:%S UTC" UTC)
115
119
116
120
###
117
121
### default name for casa-maintained dbus C++ library... (but could also be called just "dbus-cpp")
118
122
###