-
Notifications
You must be signed in to change notification settings - Fork 0
/
premake5.lua
46 lines (33 loc) · 959 Bytes
/
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
workspace "RayTracer"
platforms { "x64" }
configurations { "Debug", "Release", "Dist" }
startproject "RayTracer"
flags "MultiProcessorCompile"
include "PremakeUtilities/Utilities.lua"
-- Include directories relative to WKS
Solution.Name = "RayTracer"
Solution.AddProject("ProjectCore", "%{wks.location}/ProjectCore/")
Solution.AddProject("Walnut", "%{wks.location}/Walnut/")
include "ProjectCore"
include "Walnut"
Solution.AddProject("RayTracer", "RayTracer/")
Solution.Projects["RayTracer"].ProjectDependencies = {
"ProjectCore",
"Walnut"
}
project "RayTracer"
kind "ConsoleApp"
language "C++"
cppdialect "C++20"
staticruntime "Off"
targetdir (Solution.Path.ProjectTargetDirectory)
objdir (Solution.Path.ProjectObjectDirectory)
files {
"src/**.h",
"src/**.hpp",
"src/**.cpp"
}
includedirs {
"src/"
}
Solution.Project("RayTracer")