-
Notifications
You must be signed in to change notification settings - Fork 50
/
premake5.lua
85 lines (76 loc) · 2.2 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
-- http://industriousone.com/scripting-reference
local action = _ACTION or ""
local OPENCV_PATH = "d:/opencv/build"
solution "DancingGaga"
location (action)
configurations { "Debug", "Profile", "Release" }
platforms {"x64"}
language "C"
kind "StaticLib"
filter "system:windows"
defines {
"_CRT_SECURE_NO_WARNINGS",
"WIN32",
"_TIMESPEC_DEFINED",
"OPENCV",
"GPU",
-- "CV_IGNORE_DEBUG_BUILD_GUARD",
}
configuration "x64"
libdirs {
"../lightnet/bin",
path.join(OPENCV_PATH, "x64/vc14/lib")
}
targetdir ("bin/")
configuration "Debug"
defines { "DEBUG" }
symbols "On"
targetsuffix "-d"
configuration "Profile"
defines { "NDEBUG", "MTR_ENABLED" }
flags { "No64BitChecks" }
editandcontinue "Off"
optimize "Speed"
optimize "On"
editandcontinue "Off"
configuration "Release"
defines { "NDEBUG" }
flags { "No64BitChecks" }
editandcontinue "Off"
optimize "Speed"
optimize "On"
editandcontinue "Off"
project "DancingGaga"
kind "ConsoleApp"
includedirs {
"../lightnet/modules",
"../lightnet/modules/darknet/include",
"../lightnet/modules/darknet/3rdparty/pthreads/include",
"../lightnet/modules/darknet/src",
"src",
"../lightnet/include",
path.join("$(CUDA_PATH)", "include"),
path.join(OPENCV_PATH, "include")
}
debugdir "bin"
files {
"src/**",
"../lightnet/src/**",
"../lightnet/modules/minitrace/**",
"../lightnet/modules/PDollar/**",
}
configuration "Debug"
links {
"opencv_world340d.lib",
"yolo_cpp_dll-d.lib",
}
configuration "Profile"
links {
"opencv_world340.lib",
"yolo_cpp_dll.lib",
}
configuration "Release"
links {
"opencv_world340.lib",
"yolo_cpp_dll.lib",
}