code cleanup: naming - BKE_mesh_*
[blender.git] / extern / libmv / CMakeLists.txt
1 # ***** BEGIN GPL LICENSE BLOCK *****
2 #
3 # This program is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU General Public License
5 # as published by the Free Software Foundation; either version 2
6 # of the License, or (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software Foundation,
15 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16 #
17 # The Original Code is Copyright (C) 2011, Blender Foundation
18 # All rights reserved.
19 #
20 # Contributor(s): Blender Foundation,
21 #                 Sergey Sharybin
22 #
23 # ***** END GPL LICENSE BLOCK *****
24
25 # NOTE: This file is automatically generated by bundle.sh script
26 #       If you're doing changes in this file, please update template
27 #       in that script too
28
29 set(INC
30         .
31         ../Eigen3
32         third_party/ssba
33         third_party/ldl/Include
34         ../colamd/Include
35 )
36
37 set(INC_SYS
38         ${PNG_INCLUDE_DIR}
39         ${ZLIB_INCLUDE_DIRS}
40 )
41
42
43 # XXX - FIXME
44 # this is a momentary hack to find unwind.h in 10.6.sdk
45 if(APPLE)
46         if(${CMAKE_OSX_DEPLOYMENT_TARGET} STREQUAL "10.6")
47                 list(APPEND INC_SYS
48                         ${CMAKE_OSX_SYSROOT}/Developer/usr/llvm-gcc-4.2/lib/gcc/i686-apple-darwin10/4.2.1/include
49                 )
50         endif()
51 endif()
52 # XXX - END
53
54
55 set(SRC
56         libmv-capi.cpp
57         libmv/image/array_nd.cc
58         libmv/image/convolve.cc
59         libmv/multiview/conditioning.cc
60         libmv/multiview/euclidean_resection.cc
61         libmv/multiview/fundamental.cc
62         libmv/multiview/projection.cc
63         libmv/multiview/triangulation.cc
64         libmv/numeric/numeric.cc
65         libmv/numeric/poly.cc
66         libmv/simple_pipeline/bundle.cc
67         libmv/simple_pipeline/callbacks.cc
68         libmv/simple_pipeline/camera_intrinsics.cc
69         libmv/simple_pipeline/detect.cc
70         libmv/simple_pipeline/initialize_reconstruction.cc
71         libmv/simple_pipeline/intersect.cc
72         libmv/simple_pipeline/modal_solver.cc
73         libmv/simple_pipeline/pipeline.cc
74         libmv/simple_pipeline/reconstruction.cc
75         libmv/simple_pipeline/resect.cc
76         libmv/simple_pipeline/rigid_registration.cc
77         libmv/simple_pipeline/tracks.cc
78         libmv/tracking/brute_region_tracker.cc
79         libmv/tracking/esm_region_tracker.cc
80         libmv/tracking/hybrid_region_tracker.cc
81         libmv/tracking/klt_region_tracker.cc
82         libmv/tracking/lmicklt_region_tracker.cc
83         libmv/tracking/pyramid_region_tracker.cc
84         libmv/tracking/retrack_region_tracker.cc
85         libmv/tracking/trklt_region_tracker.cc
86
87         third_party/fast/fast_10.c
88         third_party/fast/fast_11.c
89         third_party/fast/fast_12.c
90         third_party/fast/fast_9.c
91         third_party/fast/fast.c
92         third_party/fast/nonmax.c
93         third_party/gflags/gflags.cc
94         third_party/gflags/gflags_completions.cc
95         third_party/gflags/gflags_reporting.cc
96         third_party/ldl/Source/ldl.c
97         third_party/ssba/Geometry/v3d_metricbundle.cpp
98         third_party/ssba/Math/v3d_optimization.cpp
99
100         libmv-capi.h
101         libmv/base/id_generator.h
102         libmv/base/scoped_ptr.h
103         libmv/base/vector.h
104         libmv/base/vector_utils.h
105         libmv/image/array_nd.h
106         libmv/image/convolve.h
107         libmv/image/correlation.h
108         libmv/image/image.h
109         libmv/image/sample.h
110         libmv/image/tuple.h
111         libmv/logging/logging.h
112         libmv/multiview/conditioning.h
113         libmv/multiview/euclidean_resection.h
114         libmv/multiview/fundamental.h
115         libmv/multiview/nviewtriangulation.h
116         libmv/multiview/projection.h
117         libmv/multiview/resection.h
118         libmv/multiview/triangulation.h
119         libmv/numeric/dogleg.h
120         libmv/numeric/function_derivative.h
121         libmv/numeric/levenberg_marquardt.h
122         libmv/numeric/numeric.h
123         libmv/numeric/poly.h
124         libmv/simple_pipeline/bundle.h
125         libmv/simple_pipeline/callbacks.h
126         libmv/simple_pipeline/camera_intrinsics.h
127         libmv/simple_pipeline/detect.h
128         libmv/simple_pipeline/initialize_reconstruction.h
129         libmv/simple_pipeline/intersect.h
130         libmv/simple_pipeline/modal_solver.h
131         libmv/simple_pipeline/pipeline.h
132         libmv/simple_pipeline/reconstruction.h
133         libmv/simple_pipeline/resect.h
134         libmv/simple_pipeline/rigid_registration.h
135         libmv/simple_pipeline/tracks.h
136         libmv/tracking/brute_region_tracker.h
137         libmv/tracking/esm_region_tracker.h
138         libmv/tracking/hybrid_region_tracker.h
139         libmv/tracking/klt_region_tracker.h
140         libmv/tracking/lmicklt_region_tracker.h
141         libmv/tracking/pyramid_region_tracker.h
142         libmv/tracking/region_tracker.h
143         libmv/tracking/retrack_region_tracker.h
144         libmv/tracking/trklt_region_tracker.h
145
146         third_party/fast/fast.h
147         third_party/gflags/config.h
148         third_party/gflags/gflags/gflags_completions.h
149         third_party/gflags/gflags/gflags_declare.h
150         third_party/gflags/gflags/gflags.h
151         third_party/gflags/mutex.h
152         third_party/gflags/util.h
153         third_party/ldl/Include/ldl.h
154         third_party/msinttypes/inttypes.h
155         third_party/msinttypes/stdint.h
156         third_party/ssba/Geometry/v3d_cameramatrix.h
157         third_party/ssba/Geometry/v3d_distortion.h
158         third_party/ssba/Geometry/v3d_metricbundle.h
159         third_party/ssba/Math/v3d_linear.h
160         third_party/ssba/Math/v3d_linear_utils.h
161         third_party/ssba/Math/v3d_mathutilities.h
162         third_party/ssba/Math/v3d_optimization.h
163 )
164
165 if(WIN32)
166         list(APPEND SRC
167                 third_party/glog/src/logging.cc
168                 third_party/glog/src/raw_logging.cc
169                 third_party/glog/src/utilities.cc
170                 third_party/glog/src/vlog_is_on.cc
171                 third_party/glog/src/windows/port.cc
172
173                 third_party/glog/src/utilities.h
174                 third_party/glog/src/stacktrace_generic-inl.h
175                 third_party/glog/src/stacktrace.h
176                 third_party/glog/src/stacktrace_x86_64-inl.h
177                 third_party/glog/src/base/googleinit.h
178                 third_party/glog/src/base/mutex.h
179                 third_party/glog/src/base/commandlineflags.h
180                 third_party/glog/src/stacktrace_powerpc-inl.h
181                 third_party/glog/src/stacktrace_x86-inl.h
182                 third_party/glog/src/config.h
183                 third_party/glog/src/stacktrace_libunwind-inl.h
184                 third_party/glog/src/windows/glog/raw_logging.h
185                 third_party/glog/src/windows/glog/vlog_is_on.h
186                 third_party/glog/src/windows/glog/logging.h
187                 third_party/glog/src/windows/glog/log_severity.h
188                 third_party/glog/src/windows/port.h
189                 third_party/glog/src/windows/config.h
190         )
191
192         list(APPEND INC
193                 third_party/glog/src/windows
194         )
195
196         if(NOT MINGW)
197                 list(APPEND INC
198                         third_party/msinttypes
199                 )
200         endif()
201
202         if(MSVC)
203                 set(MSVC_OFLAGS O1 O2 Ox)
204                 foreach(FLAG ${MSVC_OFLAGS})
205                         string(REPLACE "${FLAG}" "Od" CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE}")
206                         string(REPLACE "${FLAG}" "Od" CMAKE_C_FLAGS_RELWITHDEBINFO "${CMAKE_C_FLAGS_RELWITHDEBINFO}")
207                 endforeach()
208         endif()
209 else()
210         list(APPEND SRC
211                 third_party/glog/src/demangle.cc
212                 third_party/glog/src/logging.cc
213                 third_party/glog/src/raw_logging.cc
214                 third_party/glog/src/signalhandler.cc
215                 third_party/glog/src/symbolize.cc
216                 third_party/glog/src/utilities.cc
217                 third_party/glog/src/vlog_is_on.cc
218
219                 third_party/glog/src/base/commandlineflags.h
220                 third_party/glog/src/base/googleinit.h
221                 third_party/glog/src/base/mutex.h
222                 third_party/glog/src/config_freebsd.h
223                 third_party/glog/src/config.h
224                 third_party/glog/src/config_hurd.h
225                 third_party/glog/src/config_linux.h
226                 third_party/glog/src/config_mac.h
227                 third_party/glog/src/demangle.h
228                 third_party/glog/src/glog/logging.h
229                 third_party/glog/src/glog/log_severity.h
230                 third_party/glog/src/glog/raw_logging.h
231                 third_party/glog/src/glog/vlog_is_on.h
232                 third_party/glog/src/stacktrace_generic-inl.h
233                 third_party/glog/src/stacktrace.h
234                 third_party/glog/src/stacktrace_libunwind-inl.h
235                 third_party/glog/src/stacktrace_powerpc-inl.h
236                 third_party/glog/src/stacktrace_x86_64-inl.h
237                 third_party/glog/src/stacktrace_x86-inl.h
238                 third_party/glog/src/symbolize.h
239                 third_party/glog/src/utilities.h
240         )
241
242         list(APPEND INC
243                 third_party/glog/src
244         )
245 endif()
246
247 add_definitions(
248         -DV3DLIB_ENABLE_SUITESPARSE
249         -DGOOGLE_GLOG_DLL_DECL=
250 )
251
252 blender_add_lib(extern_libmv "${SRC}" "${INC}" "${INC_SYS}")