-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpremake5.lua
More file actions
54 lines (42 loc) · 1.27 KB
/
Copy pathpremake5.lua
File metadata and controls
54 lines (42 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
function includeVulkan() -- Little function that include Vulkan if LunarG's SDK is installed by MacGamerFR
filter "system:Windows"
-- LunarG's Vulkan SDK set a Windows environment variable, so use it
local envVulkanSDKPath = os.getenv("VK_SDK_PATH")
if (envVulkanSDKPath) then
local vulkanSDKPath = envVulkanSDKPath:gsub("\\", "/")
print("Found Vulkan librarie : " .. vulkanSDKPath)
includedirs { vulkanSDKPath .. "/Include" }
libdirs { vulkanSDKPath .. "/Lib" }
else
print("Vulkan SDK not found !")
end
filter {}
end
workspace "VulkanRenderer"
configurations { "Release", "Debug" }
location "build/"
project "VulkanRenderer"
kind "WindowedApp"
files {
"include/*.hpp",
"include/*.inl",
"src/*.cpp"
}
filter "configurations:Debug"
defines { "DEBUG" }
symbols "On"
targetsuffix "-d"
filter "configurations:Release"
defines { "NDEBUG" }
optimize "On"
filter "platforms:x86"
architecture "x86"
filter "platforms:x64"
architecture "x86_64"
includeVulkan()
includedirs { "C:/glfw/include", "C:/glm", "./include"}
libdirs{ "C:/glfw/lib-vc2015" }
links {
"vulkan-1",
"glfw3"
}