-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathpremake5.lua
105 lines (85 loc) · 2.34 KB
/
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
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
-- https://github.com/premake/premake-core/wiki
local action = _ACTION or ""
solution "OpenDepthSensor"
location (action)
configurations { "Debug", "Release" }
language "C++"
configuration "vs*"
platforms {"x64"}
defines {
"_CRT_SECURE_NO_WARNINGS",
"_CRT_SECURE_NO_DEPRECATE",
}
cppdialect "C++11"
disablewarnings {
"4244",
"4305",
"4996",
}
staticruntime "On"
configuration "x64"
libdirs {
"lib/msw/x64",
}
targetdir ("lib/msw/x64")
configuration "macosx"
platforms {"x64"}
cppdialect "gnu++11"
sysincludedirs {
"include",
"/usr/local/include/libusb-1.0",
"../../include",
"3rdparty",
"3rdparty/librealsense/include",
"3rdparty/openni2/include",
}
libdirs {
"lib/macosx",
}
targetdir ("lib/macosx")
flags {
"MultiProcessorCompile"
}
configuration "Debug"
defines { "DEBUG" }
symbols "On"
targetsuffix "-d"
configuration "Release"
defines { "NDEBUG" }
optimize "On"
project "OpenDepthSensor"
kind "StaticLib"
includedirs {
"include",
"../../include",
"3rdparty",
"3rdparty/ImiSDK",
"3rdparty/librealsense/include",
"3rdparty/v1/sdk/inc",
"3rdparty/v2/sdk/inc",
"3rdparty/openni2/include",
"3rdparty/k4a",
}
files {
"include/*",
"src/*",
"3rdparty/openni2/**",
"3rdparty/librealsense/include/**",
"3rdparty/librealsense/src/*",
"3rdparty/k4a/*",
}
configuration "vs*"
defines {
"RS_USE_WMF_BACKEND",
}
files {
"3rdparty/v1/**",
"3rdparty/v2/**",
}
configuration "macosx"
defines {
"RS_USE_LIBUVC_BACKEND",
}
files {
"3rdparty/librealsense/src/libuvc/*",
}