From 49397a45f1086d36082156d0d02a4fd26ba16f10 Mon Sep 17 00:00:00 2001
From: Vincent Nivoliers <vincent.nivoliers@gmail.com>
Date: Mon, 1 Feb 2021 22:02:49 +0100
Subject: [PATCH] added premake file for codeblocks of vs

---
 Src/premake4.lua | 45 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 45 insertions(+)
 create mode 100644 Src/premake4.lua

diff --git a/Src/premake4.lua b/Src/premake4.lua
new file mode 100644
index 0000000..5703057
--- /dev/null
+++ b/Src/premake4.lua
@@ -0,0 +1,45 @@
+solution "listes"
+  configurations {"debug", "release"}
+
+  configuration {"debug"}
+    defines {"DEBUG"}
+    if _PREMAKE_VERSION >="5.0" then
+      symbols "On"
+		else
+			flags { "Symbols" }
+		end
+
+
+  configuration {"release"}
+		if _PREMAKE_VERSION >="5.0" then
+			optimize "speed"
+		else
+			flags { "OptimizeSpeed" }
+		end
+
+  configuration {"linux"}
+		buildoptions { "-mtune=native -march=native" }
+		buildoptions { "-std=c++11" }
+		buildoptions { "-W -Wall -Wextra", "-pipe" }
+
+  configuration {"macosx"}
+		buildoptions { "-std=c++11" }
+
+  configuration {"linux", "debug"}
+    buildoptions {"-g"}
+    linkoptions {"-g"}
+
+  configuration {"windows"}
+    defines {"AFFICHAGE_SIMPLE"}
+
+project "test_liste"
+  language "c++"
+  kind "ConsoleApp"
+  targetdir "bin"
+  files {"cellule.hpp", "cellule.cpp", "liste.hpp", "liste.cpp", "test_liste.cpp"}
+
+project "serpent"
+  language "c++"
+  kind "ConsoleApp"
+  targetdir "bin"
+  files {"cellule.hpp", "cellule.cpp", "liste.hpp", "liste.cpp", "coordonnees.hpp", "coordonnees.cpp", "niveau.hpp", "niveau.cpp", "serpent.hpp", "serpent.cpp", "jeu_serpent.cpp"}
-- 
GitLab