-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpremake5.lua
66 lines (53 loc) · 1.22 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
workspace "Paths!"
architecture "x86_64"
configurations { "Debug", "Release" }
local projectName = "Base Project"
local projectKind = "ConsoleApp"
local lang = "C++"
local standard = (lang) .. "17"
local srcFiles =
{
"src/**"
}
local excludeSrcFiles =
{
"src/lib/**",
}
local srcLinksRelease =
{
"sfml-system",
"sfml-window",
"sfml-graphics",
"opengl32"
}
local srcLinksDebug =
{
"sfml-system-d",
"sfml-window-d",
"sfml-graphics-d",
"opengl32"
}
project (projectName)
kind "ConsoleApp"
language (lang)
cppdialect (standard)
targetdir "bin/%{cfg.buildcfg}"
location ("src/")
filter "configurations:Debug"
defines {"DEBUG"}
symbols "On"
libdirs { "src/lib/Debug" }
links (srcLinksDebug)
filter "configurations:Release"
defines {"NDEBUG"}
optimize "On"
libdirs { "src/lib/Release" }
links (srcLinksRelease)
filter {}
files (srcFiles)
removefiles (excludeSrcFiles)
includedirs { "src/include/",
"src/include/SFML/**",
"src/include/imgui/",
"src/include/imgui/backends"
}