-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathpremake5.lua
More file actions
42 lines (30 loc) · 1016 Bytes
/
Copy pathpremake5.lua
File metadata and controls
42 lines (30 loc) · 1016 Bytes
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
workspace "OpenGLBoilerPlate"
configurations { "Debug", "Release" }
startproject "OpenGLBoilerPlate"
flags { "MultiProcessorCompile" }
filter "configurations:Debug"
defines { "DEBUG", "DEBUG_SHADER" }
symbols "On"
filter "configurations:Release"
defines { "RELEASE" }
optimize "Speed"
flags { "LinkTimeOptimization" }
project "OpenGLBoilerPlate"
kind "ConsoleApp"
language "C++"
cppdialect "C++17"
architecture "x86_64"
targetdir "bin/%{cfg.buildcfg}"
objdir "obj/%{cfg.buildcfg}"
includedirs { "include/", "libs/glad/include/", "libs/glfw/include/", "libs/glm/", "libs/imgui/", "libs/imgui/examples" }
files { "src/*.cpp" }
links { "GLFW", "GLM", "GLAD", "ImGui" }
filter "system:linux"
links { "dl", "pthread" }
defines { "_X11" }
filter "system:windows"
defines { "_WINDOWS" }
include "libs/glfw.lua"
include "libs/glad.lua"
include "libs/glm.lua"
include "libs/imgui.lua"