-
Notifications
You must be signed in to change notification settings - Fork 4
/
premake4.lua
64 lines (49 loc) · 1.66 KB
/
premake4.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
solution "TSDB"
configurations { "Debug", "Release" }
configuration { "Debug" }
targetdir "bin/debug"
configuration { "Release" }
targetdir "bin/release"
if _ACTION == "clean" then
os.rmdir("bin")
end
configuration { "Debug*" }
defines { "_DEBUG", "DEBUG" }
flags { "Symbols" }
configuration { "Release*" }
defines { "NDEBUG" }
flags { "Optimize" }
project "ticpp"
-- Making this as a static lib
kind "StaticLib"
-- Set the files to include/exclude.
files { "src/ticpp/*.cpp", "src/ticpp*.h" }
excludes { "xmltest.cpp" }
-- Set the defines.
defines { "TIXML_USE_TICPP" }
-- Common setup
language "C++"
flags { "ExtraWarnings" }
project "tsdb"
language "C++"
kind "SharedLib"
files { "src/tsdb/*.h", "src/tsdb/*.cpp" }
links { "hdf5", "hdf5_hl", "boost_system-mt", "boost_date_time-mt" }
project "tsdbcreate"
language "C++"
kind "ConsoleApp"
files { "src/tsdbcreate/*.h", "src/tsdbcreate/*.cpp" }
includedirs { "src/tsdb" }
links { "tsdb", "hdf5", "hdf5_hl", "boost_system-mt", "boost_date_time-mt" }
project "tsdbimport"
language "C++"
kind "ConsoleApp"
files { "src/tsdbimport/*.h", "src/tsdbimport/*.cpp" }
includedirs { "src/tsdb", "src/ticpp" }
links { "tsdb", "hdf5", "hdf5_hl", "boost_system-mt", "boost_date_time-mt", "ticpp" }
project "tsdbview"
language "C++"
kind "ConsoleApp"
files { "src/tsdbview/*.h", "src/tsdbview/*.cpp" }
includedirs { "src/tsdb" }
links { "tsdb", "hdf5", "hdf5_hl", "boost_system-mt", "boost_date_time-mt" }