-
Notifications
You must be signed in to change notification settings - Fork 0
/
premake5.lua
82 lines (63 loc) · 2.07 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
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
-- Make gmake the default action
if not _ACTION then
_ACTION = "gmake"
end
workspace "Tests"
configurations { "Debug", "Release" }
kind "ConsoleApp"
language "C++"
basedir "build"
includedirs { "." }
filter "configurations:Debug"
defines { "_DEBUG" }
symbols "On"
links { "sfml-system", "sfml-window", "sfml-graphics" }
buildoptions { "-Wpedantic", "-Wall" }
filter "configurations:Release"
defines { "_RELEASE" }
symbols "Off"
links { "sfml-system", "sfml-window", "sfml-graphics" }
buildoptions { "-Wpedantic", "-Wall" }
project "AABBToPolygon"
files { "aabb/AABBToPolygon.cpp" }
project "AABBToRay"
files { "aabb/AABBToRay.cpp" }
project "AABBToCapsule"
files { "aabb/AABBToCapsule.cpp" }
project "CapsuleToCapsule"
files { "capsule/CapsuleToCapsule.cpp" }
project "CapsuleToPolygon"
files { "capsule/CapsuleToPolygon.cpp" }
project "CircleToAABB"
files { "circle/CircleToAABB.cpp" }
project "CircleToCapsule"
files { "circle/CircleToCapsule.cpp" }
project "CircleToCircle"
files { "circle/CircleToCircle.cpp" }
project "CircleToRay"
files { "circle/CircleToRay.cpp" }
project "CircleToPolygon"
files { "circle/CircleToPolygon.cpp" }
project "PolygonToRay"
files { "polygon/PolygonToRay.cpp" }
project "RayToAABB"
files { "ray/RayToAABB.cpp" }
project "RayToCapsule"
files { "ray/RayToCapsule.cpp" }
project "RayToCircle"
files { "ray/RayToCircle.cpp" }
project "RayToPoly"
files { "ray/RayToPoly.cpp" }
-- Removes all generated and compiled files
newaction {
trigger = "clean",
description = "Clean the software.",
execute = function ()
os.rmdir("./build")
os.rmdir("./bin")
os.rmdir("./obj")
os.remove("./Makefile")
os.remove("./*.make")
print("Done.")
end
}