-
Notifications
You must be signed in to change notification settings - Fork 4
/
premake5.lua
46 lines (41 loc) · 1.18 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
--- premake5.lua
name = "mcrt"
workspace (name)
language "C++"
location "build"
warnings "Extra"
cppdialect "C++14"
configurations {"Debug", "Release"}
filter {"configurations:Debug"}
defines {"DEBUG"}
optimize "Off"
symbols "On"
filter {"configurations:Release"}
defines {"RELEASE"}
optimize "Speed"
symbols "Off"
filter {"system:macosx"}
defines {"MACOS"}
filter {"system:windows"}
defines {"WINDOWS"}
filter {"system:linux or system:bsd"}
defines {"LINUX_OR_BSD"}
------ Program
project (name)
targetdir "bin"
kind "WindowedApp"
files {"src/main.cc"}
files {"src/foreign/**.cc"}
files {"src/"..name.."/**.cc"}
includedirs {"include/foreign"}
includedirs {"include"}
filter {"system:macosx"}
linkoptions {"-fopenmp"}
buildoptions {"-fopenmp"}
filter {"system:windows"}
linkoptions {"-fopenmp"}
buildoptions {" -static -static-libgcc -static-libstdc++",
"-mwindows", "-mconsole", "-fopenmp"}
filter {"system:linux or system:bsd"}
linkoptions {"-fopenmp"}
buildoptions {"-fopenmp"}