1
0

Added premake

This makes it easy to work on the project on both Linux🐧, Windows or even Mac🍏
This commit is contained in:
2023-05-04 22:48:06 +02:00
parent 51d6844c38
commit 3bc16b4626
4 changed files with 67 additions and 1 deletions

44
premake5.lua Normal file
View File

@@ -0,0 +1,44 @@
workspace "LearnVulkan"
kind "ConsoleApp"
language "C++"
cppdialect "C++17"
targetdir "%{prj.location}/bin/%{cfg.buildcfg}"
configurations { "Debug", "Release" }
include("Hello_vulkan/premake5.lua")
include("Hello_triangle/premake5.lua")
filter "configurations:Debug"
defines { "DEBUG" }
symbols "On"
filter "configurations:Release"
defines { "NDEBUG" }
optimize "On"
filter "system:windows"
libdirs{
"libs/GLFW",
"C:/VulkanSDK/1.3.243.0/Lib"
}
includedirs {
"C:/VulkanSDK/1.3.243.0/Include",
"libs/"
}
links {"glfw3", "vulkan-1"}
architecture "x64"
filter "system:linux"
links {
"glfw3",
"vulkan",
"dl",
"pthread",
"X11",
"Xxf86vm",
"Xrandr",
"Xi"
}