@@ -22,6 +22,8 @@ local pathUtilitiesInclude = pathUtilities .. "/include/"
22
22
local pathPluginInteropInclude = pathPluginInterop .. " /include/"
23
23
local pathPluginInteropIncludeSubdir = pathPluginInteropInclude .. " **"
24
24
local pathThirdPartyUnity = pathPluginInterop .. " /thirdParty/unity/include/"
25
+ local pathThirdPartyGLDir = pathPluginInterop .. " /thirdParty/gl3w/include/" ;
26
+ local pathSourceThirdPartyGLDir = pathPluginInterop .. " /thirdParty/gl3w/src/" ;
25
27
26
28
loadrequire (' premake5-cuda' , " https://github.com/theComputeKid/premake5-cuda" )
27
29
print (" We use export compile commands module to export compilation database for clang. If you don't have the module you won't be able to compile with clang, BUT you can still compile with visual studio !" )
@@ -72,14 +74,13 @@ project "PluginInteropUnityCUDA"
72
74
local SourceDir = rootProject .. " /src/" ;
73
75
local IncludeSubDir = pathPluginInteropIncludeSubdir ;
74
76
local IncludeDir = pathPluginInteropInclude ;
75
- local ThirdPartyGLDir = rootProject .. " /thirdParty/gl3w/include/" ;
76
- local SourceThirdPartyGLDir = rootProject .. " /thirdParty/gl3w/src/" ;
77
77
78
78
dependson {" Utilities" }
79
79
files
80
80
{
81
81
SourceDir .. " **.c" ,
82
- SourceThirdPartyGLDir .. " **.c" ,
82
+ pathSourceThirdPartyGLDir .. " **.c" ,
83
+ pathThirdPartyGLDir .. " **.h" ,
83
84
SourceDir .. " **.cpp" ,
84
85
IncludeDir .. " **.h" ,
85
86
IncludeDir .. " **.hpp" ,
@@ -91,10 +92,9 @@ project "PluginInteropUnityCUDA"
91
92
{
92
93
IncludeDir ,
93
94
IncludeSubDir ,
94
- ThirdPartyGLDir ,
95
+ pathThirdPartyGLDir ,
95
96
pathThirdPartyUnity ,
96
97
pathUtilitiesInclude ,
97
- pathThirdPartyUnity
98
98
}
99
99
100
100
@@ -158,13 +158,12 @@ project "SampleBasic"
158
158
local SourceDir = rootProject .. " /src/" ;
159
159
local IncludeSubDir = rootProject .. " /include/**" ;
160
160
local IncludeDir = rootProject .. " /include/" ;
161
- local ThirdPartyGLDir = rootProject .. " /thirdParty/gl3w/include/" ;
162
- local SourceThirdPartyGLDir = rootProject .. " /thirdParty/gl3w/src/" ;
163
161
dependson {" PluginInteropUnityCUDA" }
164
162
files
165
163
{
166
164
SourceDir .. " **.c" ,
167
- SourceThirdPartyGLDir .. " **.c" ,
165
+ -- SourceThirdPartyGLDir .. "**.c",
166
+ -- ThirdPartyGLDir .. "**.h",
168
167
SourceDir .. " **.cpp" ,
169
168
IncludeDir .. " **.h" ,
170
169
IncludeDir .. " **.cuh" ,
@@ -178,7 +177,7 @@ project "SampleBasic"
178
177
{
179
178
IncludeDir ,
180
179
IncludeSubDir ,
181
- ThirdPartyGLDir ,
180
+ pathThirdPartyGLDir ,
182
181
pathUtilitiesInclude ,
183
182
pathPluginInteropInclude ,
184
183
pathPluginInteropIncludeSubdir ,
0 commit comments