2011-11-07 12:55:18 +00:00
|
|
|
# ***** BEGIN GPL LICENSE BLOCK *****
|
|
|
|
#
|
|
|
|
# This program 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 2
|
|
|
|
# of the License, or (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program 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 this program; if not, write to the Free Software Foundation,
|
2012-02-11 04:05:00 +00:00
|
|
|
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2011-11-07 12:55:18 +00:00
|
|
|
#
|
|
|
|
# The Original Code is Copyright (C) 2011, Blender Foundation
|
|
|
|
# All rights reserved.
|
|
|
|
#
|
|
|
|
# Contributor(s): Blender Foundation,
|
|
|
|
# Sergey Sharybin
|
|
|
|
#
|
|
|
|
# ***** END GPL LICENSE BLOCK *****
|
|
|
|
|
2012-01-11 07:19:44 +00:00
|
|
|
# NOTE: This file is automatically generated by bundle.sh script
|
2011-12-15 12:44:05 +00:00
|
|
|
# If you're doing changes in this file, please update template
|
|
|
|
# in that script too
|
|
|
|
|
2011-11-07 12:55:18 +00:00
|
|
|
set(INC
|
|
|
|
.
|
|
|
|
)
|
|
|
|
|
2014-06-18 12:49:17 +00:00
|
|
|
set(INC_SYS
|
|
|
|
)
|
|
|
|
|
2011-11-07 12:55:18 +00:00
|
|
|
set(SRC
|
|
|
|
libmv-capi.h
|
2013-10-09 20:02:02 +00:00
|
|
|
libmv-capi_intern.h
|
2011-11-07 12:55:18 +00:00
|
|
|
)
|
|
|
|
|
2013-05-12 22:17:37 +00:00
|
|
|
if(WITH_LIBMV)
|
|
|
|
add_definitions(
|
|
|
|
-DWITH_LIBMV
|
2013-10-09 08:46:02 +00:00
|
|
|
-DWITH_LIBMV_GUARDED_ALLOC
|
|
|
|
-DGOOGLE_GLOG_DLL_DECL=
|
2014-02-06 12:13:12 +00:00
|
|
|
-DLIBMV_NO_FAST_DETECTOR=
|
2011-11-07 12:55:18 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
list(APPEND INC
|
2014-03-20 17:03:11 +00:00
|
|
|
third_party/gflags
|
|
|
|
third_party/glog/src
|
2013-05-12 22:17:37 +00:00
|
|
|
third_party/ceres/include
|
2013-10-09 08:46:02 +00:00
|
|
|
../../intern/guardedalloc
|
2013-05-12 22:17:37 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
set(INC_SYS
|
|
|
|
../Eigen3
|
|
|
|
${PNG_INCLUDE_DIR}
|
|
|
|
${ZLIB_INCLUDE_DIRS}
|
2011-11-07 12:55:18 +00:00
|
|
|
)
|
|
|
|
|
2013-05-12 22:17:37 +00:00
|
|
|
list(APPEND SRC
|
|
|
|
libmv-capi.cc
|
2014-02-20 13:41:05 +00:00
|
|
|
libmv-util.cc
|
2014-04-23 10:02:30 +00:00
|
|
|
libmv/base/aligned_malloc.cc
|
2013-05-12 22:17:37 +00:00
|
|
|
libmv/image/array_nd.cc
|
|
|
|
libmv/image/convolve.cc
|
|
|
|
libmv/multiview/conditioning.cc
|
|
|
|
libmv/multiview/euclidean_resection.cc
|
|
|
|
libmv/multiview/fundamental.cc
|
|
|
|
libmv/multiview/homography.cc
|
|
|
|
libmv/multiview/panography.cc
|
2014-06-18 12:49:17 +00:00
|
|
|
libmv/multiview/panography_kernel.cc
|
2013-05-12 22:17:37 +00:00
|
|
|
libmv/multiview/projection.cc
|
|
|
|
libmv/multiview/triangulation.cc
|
|
|
|
libmv/numeric/numeric.cc
|
|
|
|
libmv/numeric/poly.cc
|
|
|
|
libmv/simple_pipeline/bundle.cc
|
|
|
|
libmv/simple_pipeline/camera_intrinsics.cc
|
|
|
|
libmv/simple_pipeline/detect.cc
|
2014-02-20 13:41:05 +00:00
|
|
|
libmv/simple_pipeline/distortion_models.cc
|
2013-05-12 22:17:37 +00:00
|
|
|
libmv/simple_pipeline/initialize_reconstruction.cc
|
|
|
|
libmv/simple_pipeline/intersect.cc
|
2013-05-30 09:03:49 +00:00
|
|
|
libmv/simple_pipeline/keyframe_selection.cc
|
2013-05-12 22:17:37 +00:00
|
|
|
libmv/simple_pipeline/modal_solver.cc
|
|
|
|
libmv/simple_pipeline/pipeline.cc
|
|
|
|
libmv/simple_pipeline/reconstruction.cc
|
|
|
|
libmv/simple_pipeline/reconstruction_scale.cc
|
|
|
|
libmv/simple_pipeline/resect.cc
|
|
|
|
libmv/simple_pipeline/tracks.cc
|
|
|
|
libmv/tracking/brute_region_tracker.cc
|
|
|
|
libmv/tracking/hybrid_region_tracker.cc
|
|
|
|
libmv/tracking/klt_region_tracker.cc
|
|
|
|
libmv/tracking/pyramid_region_tracker.cc
|
|
|
|
libmv/tracking/retrack_region_tracker.cc
|
|
|
|
libmv/tracking/track_region.cc
|
|
|
|
libmv/tracking/trklt_region_tracker.cc
|
|
|
|
|
2014-02-20 13:41:05 +00:00
|
|
|
libmv-util.h
|
2014-04-23 10:02:30 +00:00
|
|
|
libmv/base/aligned_malloc.h
|
2013-05-12 22:17:37 +00:00
|
|
|
libmv/base/id_generator.h
|
|
|
|
libmv/base/scoped_ptr.h
|
|
|
|
libmv/base/vector.h
|
|
|
|
libmv/base/vector_utils.h
|
|
|
|
libmv/image/array_nd.h
|
|
|
|
libmv/image/convolve.h
|
|
|
|
libmv/image/correlation.h
|
2013-10-08 13:53:59 +00:00
|
|
|
libmv/image/image_converter.h
|
2014-06-18 12:49:17 +00:00
|
|
|
libmv/image/image_drawing.h
|
2013-05-12 22:17:37 +00:00
|
|
|
libmv/image/image.h
|
|
|
|
libmv/image/sample.h
|
|
|
|
libmv/image/tuple.h
|
|
|
|
libmv/logging/logging.h
|
|
|
|
libmv/multiview/conditioning.h
|
|
|
|
libmv/multiview/euclidean_resection.h
|
|
|
|
libmv/multiview/fundamental.h
|
2014-06-18 12:49:17 +00:00
|
|
|
libmv/multiview/homography_error.h
|
2013-05-12 22:17:37 +00:00
|
|
|
libmv/multiview/homography.h
|
|
|
|
libmv/multiview/homography_parameterization.h
|
|
|
|
libmv/multiview/nviewtriangulation.h
|
|
|
|
libmv/multiview/panography.h
|
2014-06-18 12:49:17 +00:00
|
|
|
libmv/multiview/panography_kernel.h
|
2013-05-12 22:17:37 +00:00
|
|
|
libmv/multiview/projection.h
|
|
|
|
libmv/multiview/resection.h
|
|
|
|
libmv/multiview/triangulation.h
|
2014-06-18 12:49:17 +00:00
|
|
|
libmv/multiview/two_view_kernel.h
|
2013-05-12 22:17:37 +00:00
|
|
|
libmv/numeric/dogleg.h
|
|
|
|
libmv/numeric/function_derivative.h
|
|
|
|
libmv/numeric/levenberg_marquardt.h
|
|
|
|
libmv/numeric/numeric.h
|
|
|
|
libmv/numeric/poly.h
|
|
|
|
libmv/simple_pipeline/bundle.h
|
|
|
|
libmv/simple_pipeline/callbacks.h
|
|
|
|
libmv/simple_pipeline/camera_intrinsics.h
|
2014-02-20 13:41:05 +00:00
|
|
|
libmv/simple_pipeline/camera_intrinsics_impl.h
|
2013-05-12 22:17:37 +00:00
|
|
|
libmv/simple_pipeline/detect.h
|
2014-02-20 13:41:05 +00:00
|
|
|
libmv/simple_pipeline/distortion_models.h
|
2013-05-12 22:17:37 +00:00
|
|
|
libmv/simple_pipeline/initialize_reconstruction.h
|
|
|
|
libmv/simple_pipeline/intersect.h
|
2013-05-30 09:03:49 +00:00
|
|
|
libmv/simple_pipeline/keyframe_selection.h
|
2013-05-12 22:17:37 +00:00
|
|
|
libmv/simple_pipeline/modal_solver.h
|
|
|
|
libmv/simple_pipeline/pipeline.h
|
|
|
|
libmv/simple_pipeline/reconstruction.h
|
|
|
|
libmv/simple_pipeline/reconstruction_scale.h
|
|
|
|
libmv/simple_pipeline/resect.h
|
|
|
|
libmv/simple_pipeline/tracks.h
|
|
|
|
libmv/tracking/brute_region_tracker.h
|
|
|
|
libmv/tracking/hybrid_region_tracker.h
|
|
|
|
libmv/tracking/klt_region_tracker.h
|
|
|
|
libmv/tracking/pyramid_region_tracker.h
|
|
|
|
libmv/tracking/region_tracker.h
|
|
|
|
libmv/tracking/retrack_region_tracker.h
|
|
|
|
libmv/tracking/track_region.h
|
|
|
|
libmv/tracking/trklt_region_tracker.h
|
|
|
|
|
2014-06-18 12:49:17 +00:00
|
|
|
third_party/msinttypes/inttypes.h
|
|
|
|
third_party/msinttypes/stdint.h
|
|
|
|
)
|
|
|
|
|
|
|
|
if(WIN32)
|
|
|
|
list(APPEND INC
|
|
|
|
third_party/glog/src/windows
|
|
|
|
)
|
|
|
|
|
|
|
|
if(NOT MINGW)
|
|
|
|
list(APPEND INC
|
|
|
|
third_party/msinttypes
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
2014-06-18 16:28:27 +00:00
|
|
|
if(WITH_GTESTS)
|
2014-06-18 12:49:17 +00:00
|
|
|
blender_add_lib(libmv_test_dataset "./libmv/multiview/test_data_sets.cc" "" "")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
BLENDER_SRC_GTEST("libmv_scoped_ptr" "./libmv/base/scoped_ptr_test.cc" "libmv_test_dataset;extern_libmv;extern_ceres")
|
|
|
|
BLENDER_SRC_GTEST("libmv_vector" "./libmv/base/vector_test.cc" "libmv_test_dataset;extern_libmv;extern_ceres")
|
|
|
|
BLENDER_SRC_GTEST("libmv_array_nd" "./libmv/image/array_nd_test.cc" "libmv_test_dataset;extern_libmv;extern_ceres")
|
|
|
|
BLENDER_SRC_GTEST("libmv_convolve" "./libmv/image/convolve_test.cc" "libmv_test_dataset;extern_libmv;extern_ceres")
|
|
|
|
BLENDER_SRC_GTEST("libmv_image" "./libmv/image/image_test.cc" "libmv_test_dataset;extern_libmv;extern_ceres")
|
|
|
|
BLENDER_SRC_GTEST("libmv_sample" "./libmv/image/sample_test.cc" "libmv_test_dataset;extern_libmv;extern_ceres")
|
|
|
|
BLENDER_SRC_GTEST("libmv_tuple" "./libmv/image/tuple_test.cc" "libmv_test_dataset;extern_libmv;extern_ceres")
|
|
|
|
BLENDER_SRC_GTEST("libmv_euclidean_resection" "./libmv/multiview/euclidean_resection_test.cc" "libmv_test_dataset;extern_libmv;extern_ceres")
|
|
|
|
BLENDER_SRC_GTEST("libmv_fundamental" "./libmv/multiview/fundamental_test.cc" "libmv_test_dataset;extern_libmv;extern_ceres")
|
|
|
|
BLENDER_SRC_GTEST("libmv_homography" "./libmv/multiview/homography_test.cc" "libmv_test_dataset;extern_libmv;extern_ceres")
|
|
|
|
BLENDER_SRC_GTEST("libmv_nviewtriangulation" "./libmv/multiview/nviewtriangulation_test.cc" "libmv_test_dataset;extern_libmv;extern_ceres")
|
|
|
|
BLENDER_SRC_GTEST("libmv_panography" "./libmv/multiview/panography_test.cc" "libmv_test_dataset;extern_libmv;extern_ceres")
|
|
|
|
BLENDER_SRC_GTEST("libmv_projection" "./libmv/multiview/projection_test.cc" "libmv_test_dataset;extern_libmv;extern_ceres")
|
|
|
|
BLENDER_SRC_GTEST("libmv_resection" "./libmv/multiview/resection_test.cc" "libmv_test_dataset;extern_libmv;extern_ceres")
|
|
|
|
BLENDER_SRC_GTEST("libmv_triangulation" "./libmv/multiview/triangulation_test.cc" "libmv_test_dataset;extern_libmv;extern_ceres")
|
|
|
|
BLENDER_SRC_GTEST("libmv_dogleg" "./libmv/numeric/dogleg_test.cc" "libmv_test_dataset;extern_libmv;extern_ceres")
|
|
|
|
BLENDER_SRC_GTEST("libmv_function_derivative" "./libmv/numeric/function_derivative_test.cc" "libmv_test_dataset;extern_libmv;extern_ceres")
|
|
|
|
BLENDER_SRC_GTEST("libmv_levenberg_marquardt" "./libmv/numeric/levenberg_marquardt_test.cc" "libmv_test_dataset;extern_libmv;extern_ceres")
|
|
|
|
BLENDER_SRC_GTEST("libmv_numeric" "./libmv/numeric/numeric_test.cc" "libmv_test_dataset;extern_libmv;extern_ceres")
|
|
|
|
BLENDER_SRC_GTEST("libmv_poly" "./libmv/numeric/poly_test.cc" "libmv_test_dataset;extern_libmv;extern_ceres")
|
|
|
|
BLENDER_SRC_GTEST("libmv_camera_intrinsics" "./libmv/simple_pipeline/camera_intrinsics_test.cc" "libmv_test_dataset;extern_libmv;extern_ceres")
|
|
|
|
BLENDER_SRC_GTEST("libmv_detect" "./libmv/simple_pipeline/detect_test.cc" "libmv_test_dataset;extern_libmv;extern_ceres")
|
|
|
|
BLENDER_SRC_GTEST("libmv_intersect" "./libmv/simple_pipeline/intersect_test.cc" "libmv_test_dataset;extern_libmv;extern_ceres")
|
|
|
|
BLENDER_SRC_GTEST("libmv_keyframe_selection" "./libmv/simple_pipeline/keyframe_selection_test.cc" "libmv_test_dataset;extern_libmv;extern_ceres")
|
|
|
|
BLENDER_SRC_GTEST("libmv_modal_solver" "./libmv/simple_pipeline/modal_solver_test.cc" "libmv_test_dataset;extern_libmv;extern_ceres")
|
|
|
|
BLENDER_SRC_GTEST("libmv_resect" "./libmv/simple_pipeline/resect_test.cc" "libmv_test_dataset;extern_libmv;extern_ceres")
|
|
|
|
BLENDER_SRC_GTEST("libmv_brute_region_tracker" "./libmv/tracking/brute_region_tracker_test.cc" "libmv_test_dataset;extern_libmv;extern_ceres")
|
|
|
|
BLENDER_SRC_GTEST("libmv_klt_region_tracker" "./libmv/tracking/klt_region_tracker_test.cc" "libmv_test_dataset;extern_libmv;extern_ceres")
|
|
|
|
BLENDER_SRC_GTEST("libmv_pyramid_region_tracker" "./libmv/tracking/pyramid_region_tracker_test.cc" "libmv_test_dataset;extern_libmv;extern_ceres")
|
|
|
|
else()
|
|
|
|
list(APPEND SRC
|
|
|
|
libmv-capi_stub.cc
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
blender_add_lib(extern_libmv "${SRC}" "${INC}" "${INC_SYS}")
|
|
|
|
|
|
|
|
if(WITH_LIBMV)
|
|
|
|
add_subdirectory(third_party)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
# make GLog a separate target, so it can be used for gtest as well.
|
2014-06-18 16:28:27 +00:00
|
|
|
if(WITH_LIBMV OR WITH_GTESTS)
|
2014-06-18 12:49:17 +00:00
|
|
|
# We compile GLog together with GFlag so we don't worry about
|
|
|
|
# adding extra lib to linker.
|
|
|
|
set(GLOG_SRC
|
|
|
|
third_party/gflags/gflags.cc
|
|
|
|
third_party/gflags/gflags_completions.cc
|
|
|
|
third_party/gflags/gflags_reporting.cc
|
|
|
|
|
2013-05-12 22:17:37 +00:00
|
|
|
third_party/gflags/config.h
|
|
|
|
third_party/gflags/gflags/gflags_completions.h
|
|
|
|
third_party/gflags/gflags/gflags_declare.h
|
|
|
|
third_party/gflags/gflags/gflags.h
|
|
|
|
third_party/gflags/mutex.h
|
|
|
|
third_party/gflags/util.h
|
|
|
|
)
|
|
|
|
|
|
|
|
if(WIN32)
|
2014-06-18 12:49:17 +00:00
|
|
|
list(APPEND GLOG_SRC
|
2013-05-12 22:17:37 +00:00
|
|
|
third_party/glog/src/logging.cc
|
|
|
|
third_party/glog/src/raw_logging.cc
|
|
|
|
third_party/glog/src/utilities.cc
|
|
|
|
third_party/glog/src/vlog_is_on.cc
|
|
|
|
third_party/glog/src/windows/port.cc
|
|
|
|
|
|
|
|
third_party/glog/src/utilities.h
|
|
|
|
third_party/glog/src/stacktrace_generic-inl.h
|
|
|
|
third_party/glog/src/stacktrace.h
|
|
|
|
third_party/glog/src/stacktrace_x86_64-inl.h
|
|
|
|
third_party/glog/src/base/googleinit.h
|
|
|
|
third_party/glog/src/base/mutex.h
|
|
|
|
third_party/glog/src/base/commandlineflags.h
|
|
|
|
third_party/glog/src/stacktrace_powerpc-inl.h
|
|
|
|
third_party/glog/src/stacktrace_x86-inl.h
|
|
|
|
third_party/glog/src/config.h
|
|
|
|
third_party/glog/src/stacktrace_libunwind-inl.h
|
|
|
|
third_party/glog/src/windows/glog/raw_logging.h
|
|
|
|
third_party/glog/src/windows/glog/vlog_is_on.h
|
|
|
|
third_party/glog/src/windows/glog/logging.h
|
|
|
|
third_party/glog/src/windows/glog/log_severity.h
|
|
|
|
third_party/glog/src/windows/port.h
|
|
|
|
third_party/glog/src/windows/config.h
|
|
|
|
)
|
|
|
|
else()
|
2014-06-18 12:49:17 +00:00
|
|
|
list(APPEND GLOG_SRC
|
2013-05-12 22:17:37 +00:00
|
|
|
third_party/glog/src/demangle.cc
|
|
|
|
third_party/glog/src/logging.cc
|
|
|
|
third_party/glog/src/raw_logging.cc
|
|
|
|
third_party/glog/src/signalhandler.cc
|
|
|
|
third_party/glog/src/symbolize.cc
|
|
|
|
third_party/glog/src/utilities.cc
|
|
|
|
third_party/glog/src/vlog_is_on.cc
|
|
|
|
|
|
|
|
third_party/glog/src/base/commandlineflags.h
|
|
|
|
third_party/glog/src/base/googleinit.h
|
|
|
|
third_party/glog/src/base/mutex.h
|
|
|
|
third_party/glog/src/config_freebsd.h
|
|
|
|
third_party/glog/src/config.h
|
|
|
|
third_party/glog/src/config_hurd.h
|
|
|
|
third_party/glog/src/config_linux.h
|
|
|
|
third_party/glog/src/config_mac.h
|
|
|
|
third_party/glog/src/demangle.h
|
|
|
|
third_party/glog/src/glog/logging.h
|
|
|
|
third_party/glog/src/glog/log_severity.h
|
|
|
|
third_party/glog/src/glog/raw_logging.h
|
|
|
|
third_party/glog/src/glog/vlog_is_on.h
|
|
|
|
third_party/glog/src/stacktrace_generic-inl.h
|
|
|
|
third_party/glog/src/stacktrace.h
|
|
|
|
third_party/glog/src/stacktrace_libunwind-inl.h
|
|
|
|
third_party/glog/src/stacktrace_powerpc-inl.h
|
|
|
|
third_party/glog/src/stacktrace_x86_64-inl.h
|
|
|
|
third_party/glog/src/stacktrace_x86-inl.h
|
|
|
|
third_party/glog/src/symbolize.h
|
|
|
|
third_party/glog/src/utilities.h
|
|
|
|
)
|
2011-11-08 01:32:34 +00:00
|
|
|
endif()
|
2014-06-18 12:49:17 +00:00
|
|
|
|
|
|
|
set(GLOG_INC
|
|
|
|
third_party/gflags
|
|
|
|
third_party/glog/src
|
2011-11-07 12:55:18 +00:00
|
|
|
)
|
|
|
|
|
2014-06-18 12:49:17 +00:00
|
|
|
set(GLOG_INC_SYS
|
|
|
|
)
|
2013-02-20 11:29:43 +00:00
|
|
|
|
2014-06-18 12:49:17 +00:00
|
|
|
blender_add_lib(extern_glog "${GLOG_SRC}" "${GLOG_INC}" "${GLOG_INC_SYS}")
|
2013-05-12 22:17:37 +00:00
|
|
|
endif()
|