forked from open-dis/open-dis-cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
premake5.lua
42 lines (36 loc) · 799 Bytes
/
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
--
-- 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 {
"cpp",
"CppUtils"
}
files {
"cpp/DIS/*.h",
"cpp/DIS/*.cpp",
"CppUtils/DIS/*.h",
"CppUtils/DIS/*.cpp"
}
-- TODO: add project sections for the unit tests and the examples.