forked from Ciridev/zxShaderViz
-
Notifications
You must be signed in to change notification settings - Fork 2
/
premake5.lua
68 lines (54 loc) · 1.64 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
workspace "zxShaderViz"
architecture "x64"
configurations { "Debug", "Release" }
startproject "zxShaderViz"
outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}"
ExtLibs = {}
ExtLibs["Glad"] = "build/ThirdParty/Glad/include"
ExtLibs["GLFW"] = "build/ThirdParty/GLFW/include"
ExtLibs["Yaml"] = "build/ThirdParty/YAML/include"
ExtLibs["ImGui"] = "build/ThirdParty/ImGui"
IncludeDirectories = {}
IncludeDirectories["glm"] = "build/ThirdParty/glm"
include "build/ThirdParty/Glad"
include "build/ThirdParty/GLFW"
include "build/ThirdParty/ImGui"
include "build/ThirdParty/YAML"
project "zxShaderViz"
location "build"
language "C++"
cppdialect "C++17"
targetdir ( "bin/".. outputdir .. "/%{prj.name}" )
objdir ( "bin/intermediates/" .. outputdir .. "/%{prj.name}" )
files
{
"build/src/**.cpp",
"build/include/**.h",
"%{IncludeDirectories.glm}/glm/**.hpp",
}
includedirs
{
"build/src",
"build/include",
"%{IncludeDirectories.glm}",
"%{ExtLibs.Glad}",
"%{ExtLibs.GLFW}",
"%{ExtLibs.ImGui}",
"%{ExtLibs.Yaml}"
}
links { "Glad", "GLFW", "ImGui", "Yaml-cpp", "opengl32.lib" }
pchheader "zxpch.h"
pchsource "build/src/zxpch.cpp"
filter "system:windows"
staticruntime "On"
systemversion "latest"
system "windows"
defines { "ZX_WIN" }
filter { "configurations:Debug" }
defines { "DEBUG" }
symbols "On"
kind "ConsoleApp"
filter { "configurations:Release" }
defines { "ZX_RELEASE", "NDEBUG" }
optimize "On"
kind "WindowedApp"