-
Notifications
You must be signed in to change notification settings - Fork 142
Expand file tree
/
Copy pathpremake5.lua
More file actions
53 lines (39 loc) · 1.3 KB
/
premake5.lua
File metadata and controls
53 lines (39 loc) · 1.3 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
workspace "Workspace"
architecture "x64"
configurations { "Debug", "Release" }
libdirs {"external/lib"}
includedirs {"external/include"}
OutputDir = "output/bin/%{cfg.architecture}/%{cfg.system}/%{cfg.buildcfg}"
ObjDir = "output/obj/%{cfg.architecture}/%{cfg.system}/%{cfg.buildcfg}"
project "library"
kind "SharedLib"
language "C++"
cppdialect "c++20"
buildoptions {"-fPIC"}
targetdir ( OutputDir .. "/")
objdir (ObjDir .. "/%{prj.name}")
files { "src/library/include/**.h", "src/library/src/**.cpp" }
includedirs { "src/library/include" }
--links { "spdlog" }
filter "configurations:Debug"
defines { "DEBUG" }
symbols "On"
debugger "GDB"
filter "configurations:Release"
defines { "NDEBUG" }
optimize "On"
project "app"
kind "ConsoleApp"
language "C++"
targetdir ( OutputDir .. "/")
objdir (ObjDir .. "/%{prj.name}")
files { "src/app/include/**.h", "src/app/src/**.cpp" }
includedirs { "src/library/include", "src/app/include" }
--links { "qfengine", "spdlog", "raylib", "rlImGui" }
filter "configurations:Debug"
defines { "DEBUG" }
symbols "On"
debugger "GDB"
filter "configurations:Release"
defines { "NDEBUG" }
optimize "On"