-
Notifications
You must be signed in to change notification settings - Fork 0
/
premake5.lua
54 lines (52 loc) · 1.76 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
---- premake5
name = "cnpf"
workspace (name)
language "C++"
cppdialect "C++11"
location "build"
warnings "Extra"
-- platforms {"Static", "Shared"}
configurations {"Debug", "Release"}
filter {"configurations:Debug"}
defines {"DEBUG"}
optimize "Off"
symbols "On"
filter {"configurations:Release"}
defines {"RELEASE"}
optimize "Speed"
symbols "Off"
------ Program
project (name)
targetdir "bin"
kind "WindowedApp"
files {"src/**.cc"}
files {"src/**.cpp"}
files {"src/**.c"}
includedirs {"include"}
filter {"system:windows"} -- Inconsistent...
defines {"WINDOWS"}
libdirs {"C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.0/lib/x64"}
libdirs {"bin/"}
links {"OpenCL", "glew32", "glfw3", "opengl32", "AntTweakBar64"}
buildoptions { " -static -static-libgcc -static-libstdc++", "-mwindows", "-mconsole" }
filter {"system:linux or bsd or macosx"}
links {"OpenCL", "glfw", "GLEW", "AntTweakBar", "GL"}
defines {"UNIX"}
---------------- Testing
project (name.."-tests")
targetdir "bin"
kind "ConsoleApp"
files {"src/**.cpp"}
files {"src/**.c"}
files {"tests/**.cpp"}
removefiles {"src/main.cpp"}
includedirs {"include"}
filter {"system:windows"} -- Inconsistent...
defines {"WINDOWS"}
libdirs {"C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.0/lib/x64"}
libdirs {"bin/"}
links {"OpenCL", "glew32", "glfw3", "opengl32", "AntTweakBar64"}
buildoptions { " -static -static-libgcc -static-libstdc++", "-mwindows", "-mconsole"}
filter {"system:linux or bsd or macosx"}
links {"OpenCL", "glfw", "GLEW", "AntTweakBar", "GL"}
defines {"UNIX"}