Also properly present the version string to the compiles files.
@@ -37,4 +37,6 @@ add_subdirectory(external/sol)
message("-- Building version ${VERSION}")
+add_compile_definitions(VERSION="${VERSION}")
+
add_subdirectory(source)
@@ -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();