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 +}