-
Notifications
You must be signed in to change notification settings - Fork 0
/
premake5.lua
56 lines (42 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
workspace "OpenGL"
configurations {"Debug", "Release", "Dist"}
architecture "x86_64"
outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}"
include "Dependencies/GLFW"
include "Sandbox/vendor/imgui"
project "Sandbox"
location "Sandbox"
kind "ConsoleApp"
language "C++"
cppdialect "C++17"
staticruntime "On"
pchheader "artsypch.hpp"
targetdir ("bin/" .. outputdir .. "/%{prj.name}")
objdir ("bin-int/" .. outputdir .. "/%{prj.name}")
files {
"%{prj.location}/src/**.cpp",
"%{prj.location}/vendor/stb_image/stb_image.cpp",
"%{prj.location}/vendor/stb_image/stb_image_write.cpp"
}
includedirs {
"Dependencies/GLFW/include",
"Dependencies/GLEW/include",
"Sandbox/src",
"Sandbox/vendor",
"Sandbox/vendor/imgui"
}
libdirs { "Dependencies/GLEW/lib" }
links {
"GLFW", "GL", "dl", ":libGLEW.a", -- prefer static linking GLEW
"ImGui"
}
linkoptions {
"-pthread"
}
filter "configurations:Debug"
defines "ARTSY_ENABLE_ASSERTS"
symbols "On"
filter "configurations:Release"
optimize "On"
filter "configurations:Dist"
optimize "On"