-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpremake5.lua
More file actions
83 lines (75 loc) · 1.66 KB
/
premake5.lua
File metadata and controls
83 lines (75 loc) · 1.66 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
workspace "Containers"
startproject "Testbench"
architecture "x64"
warnings "extra"
-- Set output dir
outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}-%{cfg.platform}"
-- Platform
platforms
{
"x64",
}
-- Configurations
configurations
{
"Debug",
"Release",
"Production",
}
filter "configurations:Debug"
symbols "on"
runtime "Debug"
optimize "Off"
defines
{
"_DEBUG",
}
filter "configurations:Release"
symbols "on"
runtime "Release"
optimize "Full"
defines
{
"NDEBUG",
}
filter "configurations:Production"
symbols "off"
runtime "Release"
optimize "Full"
defines
{
"NDEBUG",
}
filter {}
-- Compiler option
filter "action:vs*"
defines
{
"COMPILER_VISUAL_STUDIO",
"_SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING",
"_CRT_SECURE_NO_WARNINGS",
}
filter {}
-- Project
project "Testbench"
language "C++"
cppdialect "C++17"
systemversion "latest"
location "Testbench"
kind "ConsoleApp"
characterset "Ascii"
-- Targets
targetdir ("Build/bin/" .. outputdir .. "/%{prj.name}")
objdir ("Build/bin-int/" .. outputdir .. "/%{prj.name}")
-- Files to include
files
{
"%{prj.name}/**.h",
"%{prj.name}/**.hpp",
"%{prj.name}/**.inl",
"%{prj.name}/**.c",
"%{prj.name}/**.cpp",
"Containers/*.h",
"Containers/*.natvis",
}
project "*"