-
Notifications
You must be signed in to change notification settings - Fork 0
/
premake5.lua
52 lines (39 loc) · 1.2 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
52
workspace "TPs"
configurations {"debug", "release"}
platforms "x64"
architecture "x64"
location "build"
debugdir "./"
targetdir "bin"
local gKitDir = "/home/thomas/Libraries/gkit2light/"
local gKitFiles = { gKitDir .. "src/gKit/*.cpp", gKitDir .. "src/gKit/*.h" }
includedirs (gKitDir .. "src/gKit")
language "C++"
cppdialect "C++11"
filter "configurations:debug"
symbols "on"
filter "configurations:release"
optimize "speed"
filter "system:linux"
buildoptions { "-W -Wall -Wextra -Wsign-compare -Wno-unused-parameter -Wno-unused-function -Wno-unused-variable", "-pipe" }
links { "GLEW", "SDL2", "SDL2_image", "GL" }
filter { "system:linux", "configurations:release" }
buildoptions { "-mtune=native -march=native" }
buildoptions { "-flto" }
linkoptions { "-flto" }
buildoptions { "-fopenmp" }
linkoptions { "-fopenmp" }
project "gKit"
kind "StaticLib"
files (gKitFiles)
project "TP1"
kind "ConsoleApp"
files {"TP1/**.hpp", "TP1/**.cpp"}
links "gKit"
project "TP2"
kind "ConsoleApp"
files {"TP2/**.hpp", "TP2/**.cpp"}
--buildoptions { "-fno-omit-frame-pointer" }
--buildoptions { "-fsanitize=undefined,address" }
--linkoptions { "-fsanitize=undefined,address" }
links "gKit"