LunaTranslator/cpp/version.cmake
恍兮惚兮 ddbe526e27 .
2024-12-23 14:24:12 +08:00

10 lines
405 B
CMake

set(VERSION_MAJOR 6)
set(VERSION_MINOR 14)
set(VERSION_PATCH 13)
set(VERSION_REVISION 0)
set(LUNA_VERSION "{${VERSION_MAJOR},${VERSION_MINOR},${VERSION_PATCH},${VERSION_REVISION}}")
add_library(VERSION_DEF ${CMAKE_CURRENT_LIST_DIR}/version_def.cpp)
target_compile_definitions(VERSION_DEF PRIVATE
LUNA_VERSION_=${LUNA_VERSION})
include(${CMAKE_CURRENT_LIST_DIR}/version/generate_product_version.cmake)