summaryrefslogtreecommitdiff
path: root/bot/CMakeLists.txt
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2025-04-06 18:25:46 +0400
committerilotterytea <iltsu@alright.party>2025-04-06 18:25:46 +0400
commitd1f8efef4a68f81ca104e9b8f51e04497f3bd8aa (patch)
treece13d90a87fdbe25c8871ff1f39322681cd520b4 /bot/CMakeLists.txt
parent2a49844a95593ac98e919c18651320e62f276fa7 (diff)
feat: !ping in lua + bot and time libraries
Diffstat (limited to 'bot/CMakeLists.txt')
-rw-r--r--bot/CMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/bot/CMakeLists.txt b/bot/CMakeLists.txt
index a01cc7f..51a14fc 100644
--- a/bot/CMakeLists.txt
+++ b/bot/CMakeLists.txt
@@ -15,6 +15,13 @@ if(CMAKE_BUILD_TYPE STREQUAL "Debug")
target_compile_definitions(Bot PRIVATE DEBUG_MODE)
endif()
+string(TIMESTAMP PROJECT_COMPILE_TIME "%s")
+
+target_compile_definitions(Bot PRIVATE
+ BOT_VERSION="${PROJECT_VERSION}"
+ BOT_COMPILED_TIMESTAMP=${PROJECT_COMPILE_TIME}
+)
+
set_target_properties(
Bot PROPERTIES
DESCRIPTION ${PROJECT_DESCRIPTION}