Glog/gflags: Reduce amount of local modifications
[blender.git] / intern / 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 )
32
33 set(INC_SYS
34 )
35
36 set(SRC
37         libmv-capi.h
38 )
39
40 if(WITH_LIBMV)
41         add_definitions(${GFLAGS_DEFINES})
42         add_definitions(${GLOG_DEFINES})
43         add_definitions(${CERES_DEFINES})
44         add_definitions(-DLIBMV_GFLAGS_NAMESPACE=${GFLAGS_NAMESPACE})
45
46         list(APPEND INC
47                 ${GFLAGS_INCLUDE_DIRS}
48                 ${GLOG_INCLUDE_DIRS}
49                 ../../extern/ceres/include
50                 ../../extern/ceres/config
51                 ../guardedalloc
52         )
53
54         list(APPEND INC_SYS
55                 ${EIGEN3_INCLUDE_DIRS}
56                 ${PNG_INCLUDE_DIRS}
57                 ${ZLIB_INCLUDE_DIRS}
58         )
59
60         add_definitions(
61                 -DWITH_LIBMV_GUARDED_ALLOC
62                 -DLIBMV_NO_FAST_DETECTOR=
63         )
64
65         list(APPEND SRC
66                 intern/autotrack.cc
67                 intern/camera_intrinsics.cc
68                 intern/detector.cc
69                 intern/frame_accessor.cc
70                 intern/homography.cc
71                 intern/image.cc
72                 intern/logging.cc
73                 intern/reconstruction.cc
74                 intern/track_region.cc
75                 intern/tracks.cc
76                 intern/tracksN.cc
77                 libmv/autotrack/autotrack.cc
78                 libmv/autotrack/predict_tracks.cc
79                 libmv/autotrack/tracks.cc
80                 libmv/base/aligned_malloc.cc
81                 libmv/image/array_nd.cc
82                 libmv/image/convolve.cc
83                 libmv/multiview/conditioning.cc
84                 libmv/multiview/euclidean_resection.cc
85                 libmv/multiview/fundamental.cc
86                 libmv/multiview/homography.cc
87                 libmv/multiview/panography.cc
88                 libmv/multiview/panography_kernel.cc
89                 libmv/multiview/projection.cc
90                 libmv/multiview/triangulation.cc
91                 libmv/numeric/numeric.cc
92                 libmv/numeric/poly.cc
93                 libmv/simple_pipeline/bundle.cc
94                 libmv/simple_pipeline/camera_intrinsics.cc
95                 libmv/simple_pipeline/detect.cc
96                 libmv/simple_pipeline/distortion_models.cc
97                 libmv/simple_pipeline/initialize_reconstruction.cc
98                 libmv/simple_pipeline/intersect.cc
99                 libmv/simple_pipeline/keyframe_selection.cc
100                 libmv/simple_pipeline/modal_solver.cc
101                 libmv/simple_pipeline/pipeline.cc
102                 libmv/simple_pipeline/reconstruction.cc
103                 libmv/simple_pipeline/reconstruction_scale.cc
104                 libmv/simple_pipeline/resect.cc
105                 libmv/simple_pipeline/tracks.cc
106                 libmv/tracking/brute_region_tracker.cc
107                 libmv/tracking/hybrid_region_tracker.cc
108                 libmv/tracking/klt_region_tracker.cc
109                 libmv/tracking/pyramid_region_tracker.cc
110                 libmv/tracking/retrack_region_tracker.cc
111                 libmv/tracking/track_region.cc
112                 libmv/tracking/trklt_region_tracker.cc
113
114
115                 intern/autotrack.h
116                 intern/camera_intrinsics.h
117                 intern/detector.h
118                 intern/frame_accessor.h
119                 intern/homography.h
120                 intern/image.h
121                 intern/logging.h
122                 intern/reconstruction.h
123                 intern/track_region.h
124                 intern/tracks.h
125                 intern/tracksN.h
126                 libmv/autotrack/autotrack.h
127                 libmv/autotrack/callbacks.h
128                 libmv/autotrack/frame_accessor.h
129                 libmv/autotrack/marker.h
130                 libmv/autotrack/model.h
131                 libmv/autotrack/predict_tracks.h
132                 libmv/autotrack/quad.h
133                 libmv/autotrack/reconstruction.h
134                 libmv/autotrack/region.h
135                 libmv/autotrack/tracks.h
136                 libmv/base/aligned_malloc.h
137                 libmv/base/id_generator.h
138                 libmv/base/scoped_ptr.h
139                 libmv/base/vector.h
140                 libmv/base/vector_utils.h
141                 libmv/image/array_nd.h
142                 libmv/image/convolve.h
143                 libmv/image/correlation.h
144                 libmv/image/image_converter.h
145                 libmv/image/image_drawing.h
146                 libmv/image/image.h
147                 libmv/image/sample.h
148                 libmv/image/tuple.h
149                 libmv/logging/logging.h
150                 libmv/multiview/conditioning.h
151                 libmv/multiview/euclidean_resection.h
152                 libmv/multiview/fundamental.h
153                 libmv/multiview/homography_error.h
154                 libmv/multiview/homography.h
155                 libmv/multiview/homography_parameterization.h
156                 libmv/multiview/nviewtriangulation.h
157                 libmv/multiview/panography.h
158                 libmv/multiview/panography_kernel.h
159                 libmv/multiview/projection.h
160                 libmv/multiview/resection.h
161                 libmv/multiview/triangulation.h
162                 libmv/multiview/two_view_kernel.h
163                 libmv/numeric/dogleg.h
164                 libmv/numeric/function_derivative.h
165                 libmv/numeric/levenberg_marquardt.h
166                 libmv/numeric/numeric.h
167                 libmv/numeric/poly.h
168                 libmv/simple_pipeline/bundle.h
169                 libmv/simple_pipeline/callbacks.h
170                 libmv/simple_pipeline/camera_intrinsics.h
171                 libmv/simple_pipeline/camera_intrinsics_impl.h
172                 libmv/simple_pipeline/detect.h
173                 libmv/simple_pipeline/distortion_models.h
174                 libmv/simple_pipeline/initialize_reconstruction.h
175                 libmv/simple_pipeline/intersect.h
176                 libmv/simple_pipeline/keyframe_selection.h
177                 libmv/simple_pipeline/modal_solver.h
178                 libmv/simple_pipeline/pipeline.h
179                 libmv/simple_pipeline/reconstruction.h
180                 libmv/simple_pipeline/reconstruction_scale.h
181                 libmv/simple_pipeline/resect.h
182                 libmv/simple_pipeline/tracks.h
183                 libmv/tracking/brute_region_tracker.h
184                 libmv/tracking/hybrid_region_tracker.h
185                 libmv/tracking/kalman_filter.h
186                 libmv/tracking/klt_region_tracker.h
187                 libmv/tracking/pyramid_region_tracker.h
188                 libmv/tracking/region_tracker.h
189                 libmv/tracking/retrack_region_tracker.h
190                 libmv/tracking/track_region.h
191                 libmv/tracking/trklt_region_tracker.h
192
193                 third_party/msinttypes/inttypes.h
194                 third_party/msinttypes/stdint.h
195         )
196
197
198         if(WITH_GTESTS)
199                 blender_add_lib(libmv_test_dataset "./libmv/multiview/test_data_sets.cc" "" "")
200
201                 BLENDER_SRC_GTEST("libmv_predict_tracks" "./libmv/autotrack/predict_tracks_test.cc" "libmv_test_dataset;bf_intern_libmv;extern_ceres")
202                 BLENDER_SRC_GTEST("libmv_tracks" "./libmv/autotrack/tracks_test.cc" "libmv_test_dataset;bf_intern_libmv;extern_ceres")
203                 BLENDER_SRC_GTEST("libmv_scoped_ptr" "./libmv/base/scoped_ptr_test.cc" "libmv_test_dataset;bf_intern_libmv;extern_ceres")
204                 BLENDER_SRC_GTEST("libmv_vector" "./libmv/base/vector_test.cc" "libmv_test_dataset;bf_intern_libmv;extern_ceres")
205                 BLENDER_SRC_GTEST("libmv_array_nd" "./libmv/image/array_nd_test.cc" "libmv_test_dataset;bf_intern_libmv;extern_ceres")
206                 BLENDER_SRC_GTEST("libmv_convolve" "./libmv/image/convolve_test.cc" "libmv_test_dataset;bf_intern_libmv;extern_ceres")
207                 BLENDER_SRC_GTEST("libmv_image" "./libmv/image/image_test.cc" "libmv_test_dataset;bf_intern_libmv;extern_ceres")
208                 BLENDER_SRC_GTEST("libmv_sample" "./libmv/image/sample_test.cc" "libmv_test_dataset;bf_intern_libmv;extern_ceres")
209                 BLENDER_SRC_GTEST("libmv_tuple" "./libmv/image/tuple_test.cc" "libmv_test_dataset;bf_intern_libmv;extern_ceres")
210                 BLENDER_SRC_GTEST("libmv_euclidean_resection" "./libmv/multiview/euclidean_resection_test.cc" "libmv_test_dataset;bf_intern_libmv;extern_ceres")
211                 BLENDER_SRC_GTEST("libmv_fundamental" "./libmv/multiview/fundamental_test.cc" "libmv_test_dataset;bf_intern_libmv;extern_ceres")
212                 BLENDER_SRC_GTEST("libmv_homography" "./libmv/multiview/homography_test.cc" "libmv_test_dataset;bf_intern_libmv;extern_ceres")
213                 BLENDER_SRC_GTEST("libmv_nviewtriangulation" "./libmv/multiview/nviewtriangulation_test.cc" "libmv_test_dataset;bf_intern_libmv;extern_ceres")
214                 BLENDER_SRC_GTEST("libmv_panography" "./libmv/multiview/panography_test.cc" "libmv_test_dataset;bf_intern_libmv;extern_ceres")
215                 BLENDER_SRC_GTEST("libmv_projection" "./libmv/multiview/projection_test.cc" "libmv_test_dataset;bf_intern_libmv;extern_ceres")
216                 BLENDER_SRC_GTEST("libmv_resection" "./libmv/multiview/resection_test.cc" "libmv_test_dataset;bf_intern_libmv;extern_ceres")
217                 BLENDER_SRC_GTEST("libmv_triangulation" "./libmv/multiview/triangulation_test.cc" "libmv_test_dataset;bf_intern_libmv;extern_ceres")
218                 BLENDER_SRC_GTEST("libmv_dogleg" "./libmv/numeric/dogleg_test.cc" "libmv_test_dataset;bf_intern_libmv;extern_ceres")
219                 BLENDER_SRC_GTEST("libmv_function_derivative" "./libmv/numeric/function_derivative_test.cc" "libmv_test_dataset;bf_intern_libmv;extern_ceres")
220                 BLENDER_SRC_GTEST("libmv_levenberg_marquardt" "./libmv/numeric/levenberg_marquardt_test.cc" "libmv_test_dataset;bf_intern_libmv;extern_ceres")
221                 BLENDER_SRC_GTEST("libmv_numeric" "./libmv/numeric/numeric_test.cc" "libmv_test_dataset;bf_intern_libmv;extern_ceres")
222                 BLENDER_SRC_GTEST("libmv_poly" "./libmv/numeric/poly_test.cc" "libmv_test_dataset;bf_intern_libmv;extern_ceres")
223                 BLENDER_SRC_GTEST("libmv_camera_intrinsics" "./libmv/simple_pipeline/camera_intrinsics_test.cc" "libmv_test_dataset;bf_intern_libmv;extern_ceres")
224                 BLENDER_SRC_GTEST("libmv_detect" "./libmv/simple_pipeline/detect_test.cc" "libmv_test_dataset;bf_intern_libmv;extern_ceres")
225                 BLENDER_SRC_GTEST("libmv_intersect" "./libmv/simple_pipeline/intersect_test.cc" "libmv_test_dataset;bf_intern_libmv;extern_ceres")
226                 BLENDER_SRC_GTEST("libmv_keyframe_selection" "./libmv/simple_pipeline/keyframe_selection_test.cc" "libmv_test_dataset;bf_intern_libmv;extern_ceres")
227                 BLENDER_SRC_GTEST("libmv_modal_solver" "./libmv/simple_pipeline/modal_solver_test.cc" "libmv_test_dataset;bf_intern_libmv;extern_ceres")
228                 BLENDER_SRC_GTEST("libmv_resect" "./libmv/simple_pipeline/resect_test.cc" "libmv_test_dataset;bf_intern_libmv;extern_ceres")
229                 BLENDER_SRC_GTEST("libmv_brute_region_tracker" "./libmv/tracking/brute_region_tracker_test.cc" "libmv_test_dataset;bf_intern_libmv;extern_ceres")
230                 BLENDER_SRC_GTEST("libmv_klt_region_tracker" "./libmv/tracking/klt_region_tracker_test.cc" "libmv_test_dataset;bf_intern_libmv;extern_ceres")
231                 BLENDER_SRC_GTEST("libmv_pyramid_region_tracker" "./libmv/tracking/pyramid_region_tracker_test.cc" "libmv_test_dataset;bf_intern_libmv;extern_ceres")
232         endif()
233 else()
234         list(APPEND SRC
235                 intern/stub.cc
236         )
237 endif()
238
239 blender_add_lib(bf_intern_libmv "${SRC}" "${INC}" "${INC_SYS}")