-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpremake5.lua
More file actions
57 lines (48 loc) · 1.39 KB
/
premake5.lua
File metadata and controls
57 lines (48 loc) · 1.39 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
workspace "Renderer" -- Name of sln file
configurations { "Debug", "Release" }
architecture "x86_64"
objdir "Renderer/x64/{cfg.longname}"
targetdir ""
project "Renderer" -- Name of project
kind "ConsoleApp" -- Uses the console
language "C++"
location "Renderer" -- location of vcxproj file
-- .exe files is in bin/(debug or release)/(x86 or x64)/
--location of source files to include. Here we include All files ending with .h and .cpp
--in the folder Minimal Example even files in subfolders.
files
{
"Renderer/ImGui/*.h",
"Renderer/ImGui/*.cpp",
"Renderer/src/**.h",
"Renderer/src/**.cpp"
}
--Include directories
includedirs {
"Dependencies/GLFW/include",
"Dependencies/GLEW/include",
"Dependencies/glm",
"Dependencies/stb"
}
--libraries and links
--links (the library files)
links {
"glew32s",
"opengl32",
"glfw3"
}
defines
{
"GLEW_STATIC"
}
libdirs {
"Dependencies/GLFW/lib",
"Dependencies/GLEW/lib/Release/x64"
}
--Debug and Release configurations
filter "configurations:Debug"
defines { "DEBUG" }
symbols "On"
-- filter "configurations:Release"
-- defines { "NDEBUG" }
-- optimize "On"