-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpremake5.lua
51 lines (44 loc) · 1.09 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
local is_visual_studio = _ACTION:find("^vs") ~= nil
workspace "roselib"
characterset ("MBCS")
configurations { "Debug", "Release" }
location ".build/projects"
targetdir ".build/bin/%{cfg.buildcfg}"
kind "StaticLib"
language "C++"
warnings "Off"
architecture "x64"
cppdialect "C++20"
startproject "tests"
filter "configurations:Debug"
defines { "DEBUG", "EA_DEBUG" }
symbols "Full"
optimize "Off"
filter "configurations:Release"
defines { "RELEASE", "NDEBUG" }
symbols "Off"
optimize "Size"
project "_root"
kind "None"
files { "**" }
removefiles { ".git/**" }
removefiles { ".build/**" }
removefiles { "**.cpp", "**.h", "**.c" }
project "roselib"
kind "ConsoleApp"
language "C++"
files { "include/**.h" }
project "tests"
kind "ConsoleApp"
language "C++"
warnings "Extra"
includedirs { "include" }
includedirs { "../Catch2/single_include" }
files { "test/**.cpp" }
removefiles { "test/refptr.cpp" }
project "rosetests"
kind "ConsoleApp"
language "C++"
warnings "Extra"
includedirs { "include" }
files { "test2/**.cpp" }