-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathAFS.pro
140 lines (116 loc) · 2.96 KB
/
AFS.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
#-------------------------------------------------------
#
# Project created by Caner Hazirbas 2014-11-08T10:05:00
#
#-------------------------------------------------------
TEMPLATE = app
CONFIG += console
CONFIG -= qt
DEFINES += QMLJSDEBUGGER
# Install target (AFS) to the main project folder
target.path = .
INSTALLS += target
# Clean command
QMAKE_CLEAN += -r "./../../../AFS"
INCLUDEPATH += include/
HEADERS += \
include/main.hpp \
include/common.hpp \
include/Image.hpp \
include/Dataset.hpp \
include/Feature.hpp \
include/ImageProc.hpp \
include/Model.hpp \
include/Learning.hpp \
include/Potential.hpp \
include/Optimization.hpp \
cuda/segmentation.cuh \
cuda/binarization.cuh \
cuda/cutil5.cuh
SOURCES += \
src/main.cpp \
src/Image.cpp \
src/Dataset.cpp \
src/ImageProc.cpp \
src/Model.cpp \
src/Potential.cpp \
src/Learning.cpp \
src/Feature.cpp \
src/Optimization.cpp \
misc/edgeDetectionFct.cpp
# List CUDA source files on the filetree in QtCreator
OTHER_FILES += \
cuda/segmentation.cu \
cuda/binarization.cu \
# Compiler flags tuned for my system
QMAKE_CXXFLAGS += -I../ \
-O99 \
-pipe \
-g \
# -Wall
-w
LIBS += -L../ \
-L/usr/lib \
-lcuda \
-lcudart \
-lm \
-lX11
# OpenCV Libs
INCLUDEPATH += /usr/wiss/hazirbas/Libs/OpenCV/2.4.10/include
LIBS += -L/usr/wiss/hazirbas/Libs/OpenCV/2.4.10/lib/ \
-lopencv_core \
-lopencv_imgproc \
-lopencv_highgui \
-lopencv_ml \
-lopencv_video \
-lopencv_features2d \
-lopencv_nonfree \
-lopencv_calib3d \
-lopencv_objdetect \
-lopencv_contrib \
-lopencv_legacy \
-lopencv_flann \
# Boost Libs
INCLUDEPATH += /usr/wiss/hazirbas/Libs/Boost/1.54/build/include
LIBS += -L/usr/wiss/hazirbas/Libs/Boost/1.54/build/lib \
-lboost_system \
-lboost_filesystem
# #######################################################################
# CUDA
# #######################################################################
# auto-detect CUDA path
CUDA_ARCH = sm_35
CUDA_DIR = /usr/local/cuda-6.5
INCLUDEPATH += $$CUDA_DIR/include
LIBS += -L$$CUDA_DIR/lib64/ \
-lcudart
CUDA_SOURCES += cuda/segmentation.cu \
cuda/binarization.cu \
cuda.output = ${OBJECTS_DIR}${QMAKE_FILE_BASE}_cuda.obj
cuda.commands = $$CUDA_DIR/bin/nvcc \
-arch $$CUDA_ARCH \
-c \
$$NVFLAGS \
-Xptxas -v \
-Xcompiler \
$$join(QMAKE_CXXFLAGS,",") \
$$join(INCLUDEPATH,'" -I "','-I "','"') \
${QMAKE_FILE_NAME} \
-o \
${QMAKE_FILE_OUT}
cuda.dependcy_type = TYPE_C
cuda.depend_command = $$CUDA_DIR/bin/nvcc \
-M \
-arch $$CUDA_ARCH \
-Xptxas -v \
-Xcompiler \
$$join(QMAKE_CXXFLAGS,",") \
$$join(INCLUDEPATH,'" -I "','-I "','"') \
${QMAKE_FILE_NAME} \
| \
tr \
-d \
'\\\n'
cuda.input = CUDA_SOURCES
QMAKE_EXTRA_COMPILERS += cuda
RESOURCES +=