-
Notifications
You must be signed in to change notification settings - Fork 0
/
QGLApp.pro
65 lines (46 loc) · 1.55 KB
/
QGLApp.pro
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
QT += core gui
QT += widgets
QT += opengl
CONFIG += c++11
TARGET = QGLApp
TEMPLATE = app
#OpenGL
LIBS += -lglut -lGLU -lGL -lGLEW
#OpenCV
INCLUDEPATH += -I/usr/local/include/opencv -I/usr/local/include
LIBS += `pkg-config --libs opencv`
# Cuda
INCLUDEPATH += -I/usr/local/cuda-8.0/include # CUDA
INCLUDEPATH += -I/usr/include/libdrm
LIBS += -L/usr/local/cuda-8.0/lib64 -lcuda -lcublas -lcudart -lcufft
# Cuda
INCLUDEPATH += -I/usr/local/cuda-8.0/include # CUDA
INCLUDEPATH += -I/usr/include/libdrm
LIBS += -L/usr/local/cuda-8.0/lib64 -lcuda -lcublas -lcudart -lcufft
#SETUP NVCC COMPILER
CUDA_LIBDIR = /usr/local/cuda/lib64
CUDALIB = -L$$CUDA_LIBDIR -L$$CUDASDK_LIBDIR -lcudart -lcutil -lglut -lGLU -lGL -lcublas -lcudart -lcufft
CUDA_DIR = /usr/local/cuda
CUDA_ARCH = sm_61 # as supported by the GTX 1080 Ti
#SOURCES FOR NVCC
CUDA_SOURCES = process.cu
CUDA_DIR = /usr/local/cuda
cuda.commands = $$CUDA_DIR/bin/nvcc -std=c++11 -c -arch=$$CUDA_ARCH -o ${QMAKE_FILE_OUT} ${QMAKE_FILE_NAME} -I/opt/euresys/coaxlink/include ${CUDALIB}
cuda.dependency_type = TYPE_C
cuda.depend_command = $$CUDA_DIR/bin/nvcc --gpu-architecture=sm_61 -M ${QMAKE_FILE_NAME}
cuda.input = CUDA_SOURCES
cuda.output = ${QMAKE_FILE_BASE}_cuda.o
QMAKE_EXTRA_COMPILERS += cuda
INCLUDEPATH += $$CUDA_DIR/include
SOURCES += \
main.cpp \
mainwindow.cpp \
glwidget.cpp
HEADERS += \
mainwindow.h \
glwidget.h \
process.cuh
FORMS += \
mainwindow.ui
DISTFILES += \
process.cu