LunaTranslator/cpp/version.cmake

10 lines
372 B
CMake
Raw Normal View History

2024-11-06 07:28:55 +08:00
2024-11-14 14:18:11 +08:00
set(VERSION_MAJOR 6)
2024-11-23 22:44:47 +08:00
set(VERSION_MINOR 6)
2024-11-25 23:04:19 +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}}")
add_library(VERSION_DEF INTERFACE)
2024-11-23 02:32:50 +08:00
target_compile_definitions(VERSION_DEF INTERFACE
2024-11-19 16:00:45 +08:00
LUNA_VERSION=${LUNA_VERSION})
2024-11-06 07:28:55 +08:00
include(${CMAKE_CURRENT_LIST_DIR}/version/generate_product_version.cmake)