-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpremake4.lua
More file actions
84 lines (76 loc) · 1.76 KB
/
premake4.lua
File metadata and controls
84 lines (76 loc) · 1.76 KB
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
--
-- Premake4 build script (http://industriousone.com/premake/download)
--
local BOOST_ROOT = os.getenv('BOOST_ROOT') or ''
solution 'cpp-json'
configurations {'Debug', 'Release'}
language 'C++'
targetdir 'bin'
platforms {'x32','x64'}
configuration 'Debug'
defines { 'DEBUG' }
flags { 'Symbols' }
configuration 'Release'
defines { 'NDEBUG' }
flags { 'Symbols', 'Optimize' }
configuration 'vs*'
defines
{
'WIN32',
'WIN32_LEAN_AND_MEAN',
'_WIN32_WINNT=0x0600',
'_CRT_SECURE_NO_WARNINGS',
'_SCL_SECURE_NO_WARNINGS',
'NOMINMAX',
}
includedirs { BOOST_ROOT }
libdirs { BOOST_ROOT .. '/stage/lib' }
links 'ws2_32'
configuration 'gmake'
buildoptions '-std=c++11'
defines
{
'__STDC_LIMIT_MACROS',
'_ELPP_STACKTRACE_ON_CRASH',
}
links
{
'pthread',
}
project 'unittest'
location 'build'
kind 'ConsoleApp'
uuid '31BC2F58-F374-4984-B490-F1F08ED02DD3'
defines
{
'GTEST_HAS_TR1_TUPLE',
}
files
{
'dep/gtest/src/gtest-all.cc',
'test/*.h',
'test/*.cpp',
}
includedirs
{
'src',
'dep/gtest',
'dep/gtest/include',
}
links
{
'cpp-json',
}
project 'cpp-json'
location 'build'
kind 'StaticLib'
uuid '23431524-7099-4E72-8D4F-DC4A21F720A8'
files
{
'src/*.h',
'src/*.cpp',
}
includedirs
{
'src',
}