-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpremake4.lua
67 lines (53 loc) · 1.18 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
65
66
67
include 'premake'
make_solution 'ticker'
local OS = os.get()
includedirs {
'./RxCpp/Rx/v2/src'
}
if OS == 'linux' then
links 'pthread'
end
----------------
make_console_app( 'rxcpp_example', './ticker/rxcpp_example.cpp' )
use_standard 'c++0x'
run_target_after_build()
----------------
make_console_app( 'rxcpp_test', './ticker/rxcpp_test.cpp')
includedirs 'Catch/single_include'
use_standard 'c++0x'
run_target_after_build()
configuration 'linux'
includedirs {
'./casablanca/Release/include',
'./casablanca/Release/src/pch'
}
configuration '*'
-- todo: cleanup
if OS == 'linux' then
---------------
make_static_lib('pplx', {
'./casablanca/Release/src/pplx/pplx.cpp',
'./casablanca/Release/src/pplx/threadpool.cpp',
'./casablanca/Release/src/pplx/pplxlinux.cpp'
})
use_standard 'c++0x'
includedirs {
'./casablanca/Release/include',
'./casablanca/Release/src/pch'
}
end
----------------
make_console_app( 'ppl_example', './ticker/ppl_example.cpp' )
use_standard 'c++0x'
run_target_after_build()
includedirs {
'./casablanca/Release/include',
'./casablanca/Release/src/pch'
}
configuration 'linux'
links {
'pplx',
'boost_system',
'boost_thread'
}
configuration '*'