This repository has been archived by the owner on Feb 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathStereoReconstruction.pro
144 lines (123 loc) · 4.1 KB
/
StereoReconstruction.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
141
142
143
144
#---------------------------------------------------------------------
#
# Copyright © 2011, Jason Gedge <gedge -at- ualberta -dot- ca>
#
# This file is part of StereoReconstruction.
#
# StereoReconstruction is free software: you can redistribute it and/or
# modify it under the terms of the GNU General Public License as published
# by the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# StereoReconstruction is distributed in the hope that it will be
# useful, but WITHOUT ANY WARRANTY; without even the implied warranty
# of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with StereoReconstruction. If not, see <http:www.gnu.org/licenses/>.
#
#---------------------------------------------------------------------
# See README for build instructions
#---------------------------------------------------------------------
TEMPLATE = app
TARGET = StereoReconstruction
CONFIG += c++11 warn_on precompile_header
QT += widgets opengl xml xmlpatterns printsupport
QMAKE_MAC_SDK = macosx10.9
exists(UserConfig.pri):include(UserConfig.pri)
#---------------------------------------------------------------------
isEmpty(MAIN_CPP):MAIN_CPP = main.cpp
SOURCES += $${MAIN_CPP} \
$$files(gui/*.cpp) \
$$files(gui/dialogs/*.cpp) \
$$files(gui/widgets/*.cpp) \
$$files(gui/gvitems/*.cpp) \
$$files(project/*.cpp) \
$$files(features/*.cpp) \
$$files(hdr/*.c*) \
$$files(stereo/*.cpp) \
$$files(util/*.cpp) \
$$files(util/rawimages/*.cpp)
HEADERS += $$files(gui/*.h*) \
$$files(gui/dialogs/*.hpp) \
$$files(gui/widgets/*.hpp) \
$$files(gui/gvitems/*.hpp) \
$$files(project/*.hpp) \
$$files(features/*.hpp) \
$$files(hdr/*.h*) \
$$files(stereo/*.hpp) \
$$files(util/*.hpp) \
$$files(util/rawimages/*.hpp)
PRECOMPILED_HEADER = util/precompiled.hpp
FORMS += $$files(gui/forms/*.ui)
OTHER_FILES += shaders/*.* project/project.xsd GPL_HEADER LICENSE README.md
RESOURCES += resources.qrc
INCLUDEPATH += .
#---------------------------------------------------------------------
CONFIG(debug, debug|release) {
DEFINES *= DEBUG _DEBUG
BUILD_PREFIX = debug
} else {
DEFINES *= NDEBUG _NDEBUG
BUILD_PREFIX = release
}
#---------------------------------------------------------------------
QMAKE_CXXFLAGS += -isystem /usr/local/include
QMAKE_CXXFLAGS += -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-padded \
-Wno-exit-time-destructors -Wno-unused-private-field
LIBS += -L/usr/local/lib
#---------------------------------------------------------------------
win32 {
DEFINES *= PLATFORM_WIN
LIBS *= -lglew32
}
else:macx {
DEFINES *= PLATFORM_MAC
LIBS *= -lGLEW
}
#---------------------------------------------------------------------
LIBS *= -lopencv_core -lopencv_highgui -lopencv_legacy \
-lopencv_imgproc -lopencv_features2d -lopencv_calib3d \
-lopencv_contrib -lopencv_nonfree
LIBS *= -lgsl
#---------------------------------------------------------------------
mrf {
LIBS *= -lMRF
DEFINES *= USE_MRF
}
#---------------------------------------------------------------------
sba {
DEFINES *= USE_SBA
LIBS *= -lsba
}
#---------------------------------------------------------------------
hdr {
LIBS *= -llapack
LIBS *= -lIlmImf -lHalf # OpenEXR
LIBS *= -lboost_system-mt -lboost_filesystem-mt
DEFINES *= HAS_HDR
}
#---------------------------------------------------------------------
splats {
DEFINES += USE_SPLATS
DEFINES *= USE_OPENGL
}
#---------------------------------------------------------------------
tbb {
DEFINES *= USE_TBB
LIBS *= -ltbb -ltbbmalloc
} else:openmp {
QMAKE_CXXFLAGS *= -fopenmp
QMAKE_LFLAGS *= -fopenmp
!msvc:LIBS *= -lgomp
DEFINES *= USE_OPENMP
}
#---------------------------------------------------------------------
pgr {
DEFINES *= USING_PGR
DEFINES *= HAS_IMAGE_CAPTURE
SOURCES *= gui/capture_impl/*.cpp
LIBS *= -lFlyCapture2 -ldigiclops -ltriclops
}
#---------------------------------------------------------------------