From 5ad82a136863b7f9cad9f45c21941362193a3990 Mon Sep 17 00:00:00 2001 From: OusmBlueNinja <89956790+OusmBlueNinja@users.noreply.github.com> Date: Mon, 19 May 2025 11:25:41 -0500 Subject: [PATCH] updated versioning --- CMakeLists.txt | 16 ++++++++++++++++ main.cpp | 9 ++++----- 2 files changed, 20 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3cd19ea..c6a14e9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -15,6 +15,22 @@ set(CMAKE_C_STANDARD 23) set(CMAKE_C_STANDARD_REQUIRED ON) set(CMAKE_C_EXTENSIONS OFF) + + + + + + + + + + +include_directories(${CMAKE_BINARY_DIR}/generated) + +# Optional message +message(STATUS "Generated Onyx version: ${FULL_VERSION}") + + # --- Output directories for multi-config builds --- foreach(OUTPUTCONFIG IN ITEMS Debug Release) string(TOUPPER ${OUTPUTCONFIG} OUTPUTCONFIG_UPPER) diff --git a/main.cpp b/main.cpp index 693e891..b377a2d 100644 --- a/main.cpp +++ b/main.cpp @@ -6,18 +6,17 @@ #include "Layer.h" #include "Core.h" - int main() { - OX::Core core("Obsidian Editor - Onyx Engine (2025.1)(0.0.7)"); + constexpr const char* VERSION = "0.0.7"; // Format: 0. + constexpr const char* TITLE = "Obsidian Editor - Onyx Engine (2025.1)"; + OX::Core core(std::string(TITLE) + " (" + VERSION + ")"); core.AddLayer(std::make_unique("Obsidian Editor")); - core.Init(); core.Run(); core.Shutdown(); - -} \ No newline at end of file +}