summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e4ad9c0..91f8a98 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -67,7 +67,10 @@ endif()
list(APPEND LINK_LIBS ${GLFW_LIBRARIES})
-add_compile_definitions(VERSION="${PROJECT_VERSION}")
+add_compile_definitions(RUNE_VER="${PROJECT_VERSION}")
+add_compile_definitions(RUNE_VER_MAJOR="${PROJECT_VERSION_MAJOR}")
+add_compile_definitions(RUNE_VER_MINOR="${PROJECT_VERSION_MINOR}")
+add_compile_definitions(RUNE_VER_PATCH="${PROJECT_VERSION_PATCH}")
add_compile_definitions(RAPI_EXPORT)
add_library(${PROJECT_NAME} SHARED ${SOURCE_FILES})