-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpremake5.lua
69 lines (57 loc) · 1.38 KB
/
premake5.lua
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
workspace "RayTracerDXR"
architecture "x64"
startproject "RayTracerDXR"
toolset "v143"
configurations
{
"Debug",
"Release"
}
OutputDir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}"
project "RayTracerDXR"
location "RayTracerDXR"
kind "WindowedApp"
language "C++"
cppdialect "C++latest"
staticruntime "off"
floatingpoint "fast"
conformancemode "off"
targetdir ("bin/")
objdir ("bin-int/" .. OutputDir .. "/%{prj.name}")
linkoptions { "/SUBSYSTEM:WINDOWS"}
includedirs
{
"%{prj.name}/src",
"%{wks.location}/ThirdParty/core",
"%{wks.location}/ThirdParty/dxc",
"%{wks.location}/ThirdParty/glm"
}
links
{
"d3d12.lib",
"DXGI.lib",
"dxguid.lib"
}
files
{
"%{prj.name}/src/**.h",
"%{prj.name}/src/**.cpp",
"%{prj.name}/src/**.hlsl"
}
filter "files:**.hlsl or files: **.hlsli"
shadermodel "4.0_level_9_3"
flags "ExcludeFromBuild"
filter "configurations:Debug"
runtime "Debug"
symbols "on"
targetname "%{prj.name}_d"
filter "configurations:Release"
runtime "Release"
symbols "on"
targetname "%{prj.name}"
optimize "Full"
flags {"LinkTimeOptimization"}
defines
{
"NDEBUG"
}