forked from open-dis/open-dis-cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
premake5.lua
86 lines (76 loc) · 1.49 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
83
84
85
86
--
-- premake5 file to build open-dis-cpp
-- http://premake.github.io/
--
workspace "open-dis-cpp"
configurations {
"Debug",
"Release"
}
targetdir "Build/lib/%{cfg.buildcfg}"
configuration "Debug*"
defines { "DEBUG" }
configuration "Release*"
defines { "NDEBUG" }
optimize "On"
configuration "windows"
defines { "WIN32", "EXPORT_LIBRARY" }
configuration { "linux", "gmake" }
buildoptions {
"-Wall"
-- "-Werror" -- Turning this on causes many compiler errors.
}
project "OpenDIS"
language "C++"
kind "SharedLib"
includedirs {
"src"
}
files {
"src/dis6/*.h",
"src/dis6/*.cpp",
"src/utils/*.h",
"src/utils/*.cpp"
}
project "OpenDIS7"
language "C++"
kind "SharedLib"
includedirs {
"src"
}
files {
"src/dis7/*.h",
"src/dis7/*.cpp",
"src/utils/*.h",
"src/utils/*.cpp"
}
project "ExampleSender"
language "C++"
kind "ConsoleApp"
includedirs {
"src",
"."
}
files {
"examples/main.cpp",
"examples/Connection.*",
"examples/Utils.*",
"examples/Timer.*"
}
links { "OpenDIS", "SDL2", "SDL2_net" }
project "ExampleReceiver"
language "C++"
kind "ConsoleApp"
includedirs {
"src",
"."
}
files {
"examples/main_receive.cpp",
"examples/Connection.*",
"examples/Utils.*",
"examples/Timer.*",
"examples/EntityStatePduProcessor.*"
}
links { "OpenDIS", "SDL2", "SDL2_net" }
-- TODO: add project sections for the unit tests and the examples.