-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpremake5.lua
38 lines (31 loc) · 879 Bytes
/
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
workspace "tests"
configurations { "debug", "release" }
language "C++"
cppdialect "C++17"
architecture "x64"
warnings "Extra"
targetdir "build/bin/%{cfg.buildcfg}"
objdir "!build/obj/%{cfg.buildcfg}/%{prj.name}"
-- Windows-specific platforms and functionality
filter "action:vs*"
defines { '__BASE_FILE__="%%(Filename)%%(Extension)"' }
-- Linux-specific platforms and functionality
filter "action:gmake"
linkoptions { "-lm" }
buildoptions { "-Wno-unknown-pragmas" }
-- Global debug settings
filter "configurations:debug"
defines { "DEBUG" }
symbols "On"
rtti "On"
optimize "Off"
-- Global release settings
filter "configurations:release"
defines { "NDEBUG", "RELEASE" }
symbols "Off"
rtti "Off"
optimize "Speed"
project "tests"
kind "ConsoleApp"
location "tests/"
files { "include/**.h", "tests/**.h", "tests/**.cpp" }