forked from ybainier/Hypodermic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
premake4.lua
59 lines (46 loc) · 821 Bytes
/
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
-- require https://github.com/d-led/premake-meta-cpp in 'premake' folder
-- generate projects with: premake/premake4(.osx) gmake (or )
include 'premake'
make_solution 'hypodermic'
platforms 'native'
local OS = os.get()
local settings = {
links = {
macosx = {}
},
libdirs = {
macosx = {
'/usr/local/lib'
}
},
includedirs = {
macosx = {
'/usr/local/include'
}
}
}
includedirs {
'.',
settings.includedirs[OS]
}
libdirs {
settings.libdirs[OS]
}
--------------------------------
make_static_lib( 'hypodermic', {
'Hypodermic/**.h',
'Hypodermic/**.cpp',
}
)
use_standard('c++11')
---------------------------------------
make_console_app( 'hypodermic.tests', {
'Hypodermic.Tests/**.cpp'
}
)
use_standard('c++11')
links {
'hypodermic',
settings.links[OS]
}
run_target_after_build()