1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-28 23:06:24 +02:00
vcmi/cmake_modules/VersionDefinition.cmake

14 lines
491 B
CMake
Raw Normal View History

set(VCMI_VERSION_MAJOR 1)
2024-01-19 15:08:59 +02:00
set(VCMI_VERSION_MINOR 5)
2024-05-19 15:00:56 +02:00
set(VCMI_VERSION_PATCH 2)
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()