Browse Source

Add a nice welcome message using Logger!

Also properly present the version string to the compiles files.
Godzil 3 years ago
parent
commit
7c1768974e
2 changed files with 5 additions and 2 deletions
  1. 2 0
      CMakeLists.txt
  2. 3 2
      source/Main.cpp

+ 2 - 0
CMakeLists.txt

@@ -37,4 +37,6 @@ add_subdirectory(external/sol)
 
 message("-- Building version ${VERSION}")
 
+add_compile_definitions(VERSION="${VERSION}")
+
 add_subdirectory(source)

+ 3 - 2
source/Main.cpp

@@ -7,14 +7,15 @@
  * Created by Manoël Trapier on 09/02/2021.
  */
 
-#include <iostream>
-
+#include <Logger.h>
 #include <Game.h>
 
 int main(int argc, char *argv[])
 {
     Game game;
 
+    Logger::Info("Booting up Game Engine version %s", VERSION);
+
     game.Initialize();
     game.Run();
     game.Destroy();