-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpremake5.lua
More file actions
28 lines (23 loc) · 730 Bytes
/
premake5.lua
File metadata and controls
28 lines (23 loc) · 730 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
-- premake5.lua
workspace "CppFeatures"
architecture "x64"
configurations { "Debug", "Release" }
startproject "CppFeatures"
outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}"
project "CppFeatures"
kind "ConsoleApp"
language "C++"
cppdialect "c++20"
targetdir "bin/%{cfg.buildcfg}"
files { "src/**.hpp", "src/**.h", "src/**.cpp" }
targetdir ("bin/" .. outputdir .. "/%{prj.name}")
objdir ("bin-int/" .. outputdir .. "/%{prj.name}")
filter "configurations:Debug"
defines { "DEBUG" }
runtime "Debug"
symbols "On"
filter "configurations:Release"
defines { "nDEBUG" }
runtime "Release"
optimize "On"
symbols "On"