2012-04-30 23:09:08 -07:00
|
|
|
# Ceres Solver - A fast non-linear least squares minimizer
|
2022-02-16 01:03:01 +01:00
|
|
|
# Copyright 2022 Google Inc. All rights reserved.
|
2015-03-17 22:30:16 -07:00
|
|
|
# http://ceres-solver.org/
|
2012-04-30 23:09:08 -07:00
|
|
|
#
|
|
|
|
|
# Redistribution and use in source and binary forms, with or without
|
|
|
|
|
# modification, are permitted provided that the following conditions are met:
|
|
|
|
|
#
|
|
|
|
|
# * Redistributions of source code must retain the above copyright notice,
|
|
|
|
|
# this list of conditions and the following disclaimer.
|
|
|
|
|
# * Redistributions in binary form must reproduce the above copyright notice,
|
|
|
|
|
# this list of conditions and the following disclaimer in the documentation
|
|
|
|
|
# and/or other materials provided with the distribution.
|
|
|
|
|
# * Neither the name of Google Inc. nor the names of its contributors may be
|
|
|
|
|
# used to endorse or promote products derived from this software without
|
|
|
|
|
# specific prior written permission.
|
|
|
|
|
#
|
|
|
|
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
|
|
|
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
|
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
|
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
|
|
|
|
|
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
|
|
|
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
|
|
|
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
|
|
|
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
|
|
|
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
|
|
|
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
|
|
|
# POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
|
#
|
|
|
|
|
# Author: keir@google.com (Keir Mierle)
|
|
|
|
|
|
2015-08-09 15:18:42 +01:00
|
|
|
add_executable(helloworld helloworld.cc)
|
2022-02-16 01:03:01 +01:00
|
|
|
target_link_libraries(helloworld PRIVATE Ceres::ceres)
|
2012-04-30 23:09:08 -07:00
|
|
|
|
2015-08-09 15:18:42 +01:00
|
|
|
add_executable(helloworld_numeric_diff helloworld_numeric_diff.cc)
|
2022-02-16 01:03:01 +01:00
|
|
|
target_link_libraries(helloworld_numeric_diff PRIVATE Ceres::ceres)
|
2013-02-06 14:31:07 -08:00
|
|
|
|
2015-08-09 15:18:42 +01:00
|
|
|
add_executable(helloworld_analytic_diff helloworld_analytic_diff.cc)
|
2022-02-16 01:03:01 +01:00
|
|
|
target_link_libraries(helloworld_analytic_diff PRIVATE Ceres::ceres)
|
2012-08-29 18:18:48 -07:00
|
|
|
|
2015-08-09 15:18:42 +01:00
|
|
|
add_executable(curve_fitting curve_fitting.cc)
|
2022-02-16 01:03:01 +01:00
|
|
|
target_link_libraries(curve_fitting PRIVATE Ceres::ceres)
|
2013-02-06 14:31:07 -08:00
|
|
|
|
2015-08-09 15:18:42 +01:00
|
|
|
add_executable(rosenbrock rosenbrock.cc)
|
2022-02-16 01:03:01 +01:00
|
|
|
target_link_libraries(rosenbrock PRIVATE Ceres::ceres)
|
2014-09-05 11:56:29 -07:00
|
|
|
|
2021-09-14 08:17:21 -07:00
|
|
|
add_executable(rosenbrock_analytic_diff rosenbrock_analytic_diff.cc)
|
2022-02-16 01:03:01 +01:00
|
|
|
target_link_libraries(rosenbrock_analytic_diff PRIVATE Ceres::ceres)
|
2021-09-14 08:17:21 -07:00
|
|
|
|
|
|
|
|
add_executable(rosenbrock_numeric_diff rosenbrock_numeric_diff.cc)
|
2022-02-16 01:03:01 +01:00
|
|
|
target_link_libraries(rosenbrock_numeric_diff PRIVATE Ceres::ceres)
|
2021-09-14 08:17:21 -07:00
|
|
|
|
2015-08-09 15:18:42 +01:00
|
|
|
add_executable(curve_fitting_c curve_fitting.c)
|
2022-02-16 01:03:01 +01:00
|
|
|
target_link_libraries(curve_fitting_c PRIVATE Ceres::ceres)
|
2022-03-06 15:27:49 +01:00
|
|
|
# Force CMake to link curve_fitting_c using the C++ linker.
|
|
|
|
|
set_target_properties(curve_fitting_c PROPERTIES LINKER_LANGUAGE CXX)
|
2013-10-23 14:06:44 +01:00
|
|
|
# As this is a C file #including <math.h> we have to explicitly add the math
|
|
|
|
|
# library (libm). Although some compilers (dependent upon options) will accept
|
|
|
|
|
# the indirect link to libm via Ceres, at least GCC 4.8 on pure Debian won't.
|
2022-02-16 01:03:01 +01:00
|
|
|
if (HAVE_LIBM)
|
|
|
|
|
target_link_libraries(curve_fitting_c PRIVATE m)
|
|
|
|
|
endif (HAVE_LIBM)
|
2013-05-07 02:59:32 -07:00
|
|
|
|
2015-08-09 15:18:42 +01:00
|
|
|
add_executable(ellipse_approximation ellipse_approximation.cc)
|
2022-02-16 01:03:01 +01:00
|
|
|
target_link_libraries(ellipse_approximation PRIVATE Ceres::ceres)
|
2014-04-26 07:42:23 +01:00
|
|
|
|
2015-08-09 15:18:42 +01:00
|
|
|
add_executable(robust_curve_fitting robust_curve_fitting.cc)
|
2022-02-16 01:03:01 +01:00
|
|
|
target_link_libraries(robust_curve_fitting PRIVATE Ceres::ceres)
|
2013-02-06 14:31:07 -08:00
|
|
|
|
2015-08-09 15:18:42 +01:00
|
|
|
add_executable(simple_bundle_adjuster simple_bundle_adjuster.cc)
|
2022-02-16 01:03:01 +01:00
|
|
|
target_link_libraries(simple_bundle_adjuster PRIVATE Ceres::ceres)
|
2012-04-30 23:09:08 -07:00
|
|
|
|
2021-09-20 02:18:12 +03:00
|
|
|
add_executable(bicubic_interpolation bicubic_interpolation.cc)
|
2022-02-16 01:03:01 +01:00
|
|
|
target_link_libraries(bicubic_interpolation PRIVATE Ceres::ceres)
|
2021-09-20 02:18:12 +03:00
|
|
|
|
|
|
|
|
add_executable(bicubic_interpolation_analytic bicubic_interpolation_analytic.cc)
|
2022-02-16 01:03:01 +01:00
|
|
|
target_link_libraries(bicubic_interpolation_analytic PRIVATE Ceres::ceres)
|
2021-09-20 02:18:12 +03:00
|
|
|
|
2015-08-09 15:18:42 +01:00
|
|
|
if (GFLAGS)
|
|
|
|
|
add_executable(powell powell.cc)
|
2022-02-16 01:03:01 +01:00
|
|
|
target_link_libraries(powell PRIVATE Ceres::ceres gflags)
|
2013-07-05 20:22:37 +01:00
|
|
|
|
2015-08-09 15:18:42 +01:00
|
|
|
add_executable(nist nist.cc)
|
2022-02-16 01:03:01 +01:00
|
|
|
target_link_libraries(nist PRIVATE Ceres::ceres gflags)
|
|
|
|
|
if (HAVE_BIGOBJ)
|
|
|
|
|
target_compile_options(nist PRIVATE /bigobj)
|
2018-05-08 09:31:22 +01:00
|
|
|
endif()
|
2012-04-30 23:09:08 -07:00
|
|
|
|
2015-08-09 15:18:42 +01:00
|
|
|
add_executable(more_garbow_hillstrom more_garbow_hillstrom.cc)
|
2022-02-16 01:03:01 +01:00
|
|
|
target_link_libraries(more_garbow_hillstrom PRIVATE Ceres::ceres gflags)
|
2014-02-18 09:36:21 -08:00
|
|
|
|
2015-08-09 15:18:42 +01:00
|
|
|
add_executable(circle_fit circle_fit.cc)
|
2022-02-16 01:03:01 +01:00
|
|
|
target_link_libraries(circle_fit PRIVATE Ceres::ceres gflags)
|
2012-04-30 23:09:08 -07:00
|
|
|
|
2015-08-09 15:18:42 +01:00
|
|
|
add_executable(bundle_adjuster
|
2012-05-11 11:26:38 -07:00
|
|
|
bundle_adjuster.cc
|
|
|
|
|
bal_problem.cc)
|
2022-02-16 01:03:01 +01:00
|
|
|
target_link_libraries(bundle_adjuster PRIVATE Ceres::ceres gflags)
|
2012-08-21 11:00:55 -07:00
|
|
|
|
2015-08-09 15:18:42 +01:00
|
|
|
add_executable(libmv_bundle_adjuster
|
2013-05-10 13:28:15 +06:00
|
|
|
libmv_bundle_adjuster.cc)
|
2022-02-16 01:03:01 +01:00
|
|
|
target_link_libraries(libmv_bundle_adjuster PRIVATE Ceres::ceres gflags)
|
2013-05-10 13:28:15 +06:00
|
|
|
|
2015-08-09 15:18:42 +01:00
|
|
|
add_executable(libmv_homography
|
2014-01-13 21:18:08 +06:00
|
|
|
libmv_homography.cc)
|
2022-02-16 01:03:01 +01:00
|
|
|
target_link_libraries(libmv_homography PRIVATE Ceres::ceres gflags)
|
2014-01-13 21:18:08 +06:00
|
|
|
|
2015-08-09 15:18:42 +01:00
|
|
|
add_executable(denoising
|
2012-08-21 11:00:55 -07:00
|
|
|
denoising.cc
|
|
|
|
|
fields_of_experts.cc)
|
2022-02-16 01:03:01 +01:00
|
|
|
target_link_libraries(denoising PRIVATE Ceres::ceres gflags)
|
2014-04-22 10:40:47 -04:00
|
|
|
|
2015-08-09 15:18:42 +01:00
|
|
|
add_executable(robot_pose_mle
|
2014-04-22 10:40:47 -04:00
|
|
|
robot_pose_mle.cc)
|
2022-02-16 01:03:01 +01:00
|
|
|
target_link_libraries(robot_pose_mle PRIVATE Ceres::ceres gflags)
|
2015-08-09 15:18:42 +01:00
|
|
|
endif (GFLAGS)
|
2016-07-14 10:10:13 -07:00
|
|
|
|
2016-07-25 18:30:48 -07:00
|
|
|
add_subdirectory(sampled_function)
|
2016-11-12 18:36:28 +00:00
|
|
|
add_subdirectory(slam)
|