-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdlibs.pri
51 lines (38 loc) · 972 Bytes
/
dlibs.pri
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
DLIB_PATH = $$PWD/../3rdLibs/dlib/dlib
INCLUDEPATH += $${DLIB_PATH}
LIB_SUFFIX = a
win32-msvc2015{
LIB_SUFFIX = .lib
CONFIG(debug, debug|release) {
LIB_PATH = $${DLIB_PATH}/vc2015_64/dlib/Debug
} else {
contains(DEFINES, DLIB_USE_CUDA) {
LIB_PATH = $${DLIB_PATH}/vc2015_64/dlib/ReleaseGpu
} else {
LIB_PATH = $${DLIB_PATH}/vc2015_64/dlib/ReleaseCpu
}
} #config end
}
win32-msvc2013{
LIB_SUFFIX = lib
CONFIG(debug, debug|release) {
LIB_PATH = $${DLIB_PATH}/vc2013_64/dlib/Debug
} else {
LIB_PATH = $${DLIB_PATH}/vc2013_64/dlib/Release
} #config end
} #win32 end
win32{
LIBS += $${LIB_PATH}/dlib$${LIB_SUFFIX}
}
linux-g++ {
contains(DEFINES, DLIB_USE_CUDA) {
LIBS += -L/usr/local/cuda-8.0/lib64 -lcuda -lcudart -lcurand -lcublas -lcudnn -lcusolver
}
LIBS += -pthread
LIBS += -L/usr/lib -llapack -lblas
LIBS += -ldlib
} #linux-g++ end
unix{
LIBS += -lX11
LIBS += -lXext
}