diff --git a/premake5.lua b/premake5.lua index 236c647..8177366 100644 --- a/premake5.lua +++ b/premake5.lua @@ -23,6 +23,13 @@ workspace "Vulkan-Practice" includedirs {"src/", "cutes"} links { "SDL2", "m", "vulkan", "SDL2_image" } + postbuildcommands { + "glslc shaders/shader.frag -o shaders/frag.spv", + "glslc shaders/shader.vert -o shaders/vert.spv", + "{RMDIR} %{cfg.targetdir}/shaders", + "{COPYDIR} shaders/ %{cfg.targetdir}/shaders/" + } + filter "configurations:Debug" defines { "DEBUG" } runtime "Debug"