-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy pathpremake5.lua
More file actions
28 lines (25 loc) · 976 Bytes
/
premake5.lua
File metadata and controls
28 lines (25 loc) · 976 Bytes
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
project "Unittest"
kind "ConsoleApp"
targetdir "../dist/bin/%{cfg.buildcfg}"
location "../build/"
if os.istarget("windows") then
libdirs{ "../contrib/glew", "../contrib/glfw/" }
links{ "glew32s", "glfw3", "opengl32" }
links{ "version" }
end
if os.istarget("linux") then
links { "pthread" }
end
includedirs { "../" }
files { "../Orochi/**.h", "../Orochi/**.cpp" }
files { "*.cpp", "*.h" }
removefiles { "moduleTestFunc.cpp", "moduleTestKernel.cpp" }
files { "../contrib/**.h", "../contrib/**.cpp" }
files { "../contrib/**.h", "../contrib/**.cpp" }
files { "../contrib/gtest-1.6.0/gtest-all.cc" }
externalincludedirs{ "../contrib/gtest-1.6.0/" }
defines { "GTEST_HAS_TR1_TUPLE=0" }
if _OPTIONS["kernelcompile"] then
os.execute( "cd ./bitcodes/ && generate_bitcodes.bat" )
os.execute( "cd ./bitcodes/ && generate_bitcodes_nvidia.bat" )
end