-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpremake5.lua
More file actions
73 lines (59 loc) · 1.49 KB
/
premake5.lua
File metadata and controls
73 lines (59 loc) · 1.49 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
workspace "AdvancedProjectComputerGraphics"
architecture "x64"
configurations {
"Debug",
"Release"
}
outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}"
-- Include Directories relative to root folder
includeDir = {}
includeDir["GLFW"] = "AdvancedProjectComputerGraphics/vendor/GLFW/include"
includeDir["Glad"] = "AdvancedProjectComputerGraphics/vendor/Glad/include"
includeDir["glm"] = "AdvancedProjectComputerGraphics/vendor/glm/"
-- ? this will search for lua files
include "AdvancedProjectComputerGraphics/vendor/GLFW"
include "AdvancedProjectComputerGraphics/vendor/Glad" -- Search for lua files
project "AdvancedProjectComputerGraphics"
location "AdvancedProjectComputerGraphics"
kind "ConsoleApp"
language "C++"
cppdialect "C++17"
staticruntime "on"
targetdir("bin/" .. outputdir .. "/%{prj.name}")
objdir("bin-int/" .. outputdir .. "/%{prj.name}")
files {
"%{prj.name}/src/**.h",
"%{prj.name}/src/**.cpp",
"%{prj.name}/res/**/**.png",
"%{prj.name}/res/**/**.glsl",
"%{prj.name}/res/**/**.vs",
"%{prj.name}/res/**/**.fs",
"%{prj.name}/res/**/**.gs",
}
defines {
"_CRT_SECURE_NO_WARNINGS"
}
includedirs {
"%{prj.name}/src",
"%{prj.name}/src/vendor",
"%{includeDir.GLFW}",
"%{includeDir.Glad}",
"%{includeDir.glm}",
}
links {
"GLFW",
"Glad",
"opengl32.lib"
}
filter "system:windows"
staticruntime "On"
systemversion "latest"
defines {
"GLFW_INCLUDE_NONE"
}
filter "configurations:Debug"
runtime "Debug"
symbols "On"
filter "configurations:Release"
runtime "Release"
symbols "On"