diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..32a4d30 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +bin +build +Makefile diff --git a/premake5.lua b/premake5.lua index e69de29..0f6c4f7 100644 --- a/premake5.lua +++ b/premake5.lua @@ -0,0 +1,25 @@ +workspace "roguelike" + configurations { "debug", "release" } + location "." + +project "roguelike" + kind "WindowedApp" + language "C++" + cppdialect "C++20" + location "build/" + buildinputs "../resources/**.*" + buildoutputs "%{cfg.targetdir}/resources/**.*" + postbuildcommands "{COPYDIR} ../resources %{cfg.targetdir}" + files { "src/**.cpp", "vendor/**.cpp" } + includedirs { "src/", "vendor/" } + links { "SDL2", "SDL2_image", "m", "SDL2_ttf" } + targetdir "bin/" + exceptionhandling "Off" + filter "configurations:debug" + defines { "DEBUG" } + optimize "Off" + symbols "On" + filter "configurations:release" + defines { "NDEBUG" } + optimize "On" + symbols "Off" diff --git a/src/main.cpp b/src/main.cpp index e69de29..a553b51 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -0,0 +1,3 @@ +int main(int argc, char *argv[]) { + return 0; +}