-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpremake5.lua
56 lines (40 loc) · 1.46 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
workspace "MScProject"
configurations{"Debug", "Release"}
startproject "MScProject"
filter "configurations:Debug"
defines {"DEBUG", "DEBUG_SHADER"}
symbols "On"
filter "configurations:Release"
defines {"RELEASE"}
optimize "Speed"
flags { "LinkTimeOptimization" }
project "MScProject"
kind "ConsoleApp"
language "C++"
cppdialect "C++11"
architecture "x86_64"
targetdir "bin/%{cfg.buildcfg}"
objdir "obj/%{cfg.buildcfg}"
sysincludedirs{"Include/", "libs/glad/include/", "libs/glfw/include/","libs/glm/", "libs/imgui/"}
files {"Source/**.cpp"}
files {"Shader/*.vert", "Shader/*.frag"}
files {"Include/**.hpp"}
links {"GLFW", "GLM", "GLAD", "ImGui"}
filter {"system:Linux", "action:gmake"}
links {"dl", "X11", "pthread"}
filter {"system:windows", "action:vs2022"}
flags { "MultiProcessorCompile", "NoMinimalRebuild" }
linkoptions { "/ignore:4099" } -- Ignore library pdb warnings when running in debug
filter {"system:macosx", "action:xcode4"}
toolset "clang"
links { "IOKit.framework",
"Cocoa.framework",
"CoreFoundation.framework",
"OpenGL.framework",
"SystemConfiguration.framework",
"CoreVideo.framework" }
filter {}
include "libs/glfw.lua"
include "libs/glad.lua"
include "libs/glm.lua"
include "libs/imgui.lua"