2024-11-06 07:28:55 +08:00
|
|
|
|
2024-11-14 14:18:11 +08:00
|
|
|
set(VERSION_MAJOR 6)
|
2025-01-04 17:59:00 +08:00
|
|
|
set(VERSION_MINOR 17)
|
2025-01-07 01:01:15 +08:00
|
|
|
set(VERSION_PATCH 6)
|
2024-11-09 19:44:30 +08:00
|
|
|
set(VERSION_REVISION 0)
|
2024-11-19 16:00:45 +08:00
|
|
|
set(LUNA_VERSION "{${VERSION_MAJOR},${VERSION_MINOR},${VERSION_PATCH},${VERSION_REVISION}}")
|
2024-11-27 17:27:29 +08:00
|
|
|
add_library(VERSION_DEF ${CMAKE_CURRENT_LIST_DIR}/version_def.cpp)
|
|
|
|
target_compile_definitions(VERSION_DEF PRIVATE
|
|
|
|
LUNA_VERSION_=${LUNA_VERSION})
|
2025-01-04 07:28:06 +08:00
|
|
|
include(${CMAKE_CURRENT_LIST_DIR}/version/generate_product_version.cmake)
|
|
|
|
|
|
|
|
generate_product_version(
|
|
|
|
versioninfo
|
|
|
|
NAME "LunaTranslator"
|
|
|
|
COMPANY_COPYRIGHT "HIllya51 (C) 2025"
|
|
|
|
ICON ${PATH_TO_APPLICATION_ICON}
|
|
|
|
VERSION_MAJOR ${VERSION_MAJOR}
|
|
|
|
VERSION_MINOR ${VERSION_MINOR}
|
|
|
|
VERSION_PATCH ${VERSION_PATCH}
|
|
|
|
VERSION_REVISION ${VERSION_REVISION}
|
|
|
|
)
|