forked from AngelMonica126/GraphicAlgorithm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
function.lua
88 lines (76 loc) · 1.58 KB
/
function.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
publicIncludedirs =
{
"$(ProjectDir)",
"$(EIGEN)",
"$(BOOST)",
"$(ASSIMP)/include",
"$(STB_IMAGE)/include",
"$(GLM)",
"$(OPENGL)/include/",
"../FRAME"
}
publicLibdirs =
{
"$(PARTIO)/Release",
"$(BOOST)/x64",
"$(ASSIMP)/lib/x64",
"$(OPENGL)/lib/x64"
}
publicLinks =
{
"FRAME.lib",
"opengl32.lib",
"glfw3-vc140.lib",
"assimp-vc140-mt.lib",
"kernel32.lib",
"user32.lib",
"gdi32.lib",
"winspool.lib",
"comdlg32.lib",
"advapi32.lib",
"shell32.lib",
"ole32.lib",
"oleaut32.lib",
"uuid.lib",
"odbc32.lib",
"odbccp32.lib"
}
function create_console_project(name)
project(name)
kind "ConsoleApp"
systemversion "latest"
language "C++"
filter { "platforms:x64" }
system "Windows"
architecture "x86_64"
files { "**.h", "**.cpp","**.glsl","**.cu","**.cuh" }
vpaths {
["Headers"] = "**.h",
["Sources/*"] = {"**.cpp"},
["Shader"] = {"**.glsl"},
["CUDA"] = {"**.cu","**.cuh"}
}
debugenvs {"PATH=$(OPENGL)/bin/x64;$(ASSIMP)/bin/x64;%PATH"}
disablewarnings {
"4251",
"4305",
"4244"
}
includedirs {publicIncludedirs}
links {publicLinks}
libdirs {publicLibdirs}
filter "configurations:Debug"
defines { "DEBUG" }
symbols "On"
targetdir "../x64/Debug"
objdir "x64/Debug"
links { "glew32d.lib"}
libdirs { "../x64/Debug" }
filter "configurations:Release"
defines { "NDEBUG" }
optimize "On"
targetdir "../x64/Release"
objdir "x64/Release"
links { "glew32.lib"}
libdirs { "../x64/Release" }
end