2022-10-22 18:54:09 +02:00
|
|
|
set(VCMI_VERSION_MAJOR 1)
|
2023-07-27 18:14:47 +02:00
|
|
|
set(VCMI_VERSION_MINOR 4)
|
2023-12-25 23:00:39 +02:00
|
|
|
set(VCMI_VERSION_PATCH 3)
|
2022-10-22 18:54:09 +02:00
|
|
|
add_definitions(
|
|
|
|
-DVCMI_VERSION_MAJOR=${VCMI_VERSION_MAJOR}
|
|
|
|
-DVCMI_VERSION_MINOR=${VCMI_VERSION_MINOR}
|
|
|
|
-DVCMI_VERSION_PATCH=${VCMI_VERSION_PATCH}
|
|
|
|
-DVCMI_VERSION_STRING="${VCMI_VERSION_MAJOR}.${VCMI_VERSION_MINOR}.${VCMI_VERSION_PATCH}"
|
|
|
|
)
|
|
|
|
set(APP_SHORT_VERSION "${VCMI_VERSION_MAJOR}.${VCMI_VERSION_MINOR}")
|
|
|
|
if(NOT VCMI_VERSION_PATCH EQUAL 0)
|
|
|
|
string(APPEND APP_SHORT_VERSION ".${VCMI_VERSION_PATCH}")
|
2023-02-03 11:25:08 +02:00
|
|
|
endif()
|