-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpremake5.lua
41 lines (38 loc) · 939 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
-- premake5.lua
workspace 'GLBox'
startproject "Sandbox"
configurations {'Debug', 'Release'}
platforms {'Win64'}
outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}"
group 'Dependencies'
include './vendor/glfw'
include './vendor/glad'
group ''
project 'Sandbox'
kind 'ConsoleApp'
language 'C++'
cppdialect 'C++20'
warnings "Extra"
-- pchheader "pch.hpp"
targetdir 'bin/%{cfg.buildcfg}'
includedirs {'./src', "vendor/glm", './vendor/glad/include', './vendor/glfw/include', "./vendor/stb", "./vendor/fast_obj"}
links {
'GLFW',
'Glad'
}
defines {
'GLFW_INCLUDE_NONE'
}
files {
'src/**.hpp',
'src/**.cpp',
"vendor/glm/glm/**.hpp",
"vendor/glm/glm/**.inl"
}
filter 'configurations:Debug'
defines {'DEBUG'}
symbols 'On'
filter 'configurations:Release'
defines {'NDEBUG'}
optimize 'On'
filter ''