mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-30 00:50:37 +08:00
032d5844c2
This patch integrates the code generation module into the build system. All depenendcies are tracked through CMake targets. Modifying the cost functor will automatically trigger code re-generation. All this functionality is defined in the CMake function ceres_generate_cost_function_implementation_for_functor in CeresCodeGeneration.cmake. A hello world usage example is included in examples/CMakeLists.txt. Change-Id: I23b8b6698d1ea51cf3d788a47afcf39f8c5ce327
11 lines
424 B
Plaintext
11 lines
424 B
Plaintext
// This file is generated by Ceres autodiff code generation.
|
|
// http://ceres-solver.org/
|
|
|
|
#ifdef CERES_CODEGEN
|
|
// Included by generator during generation of autodiff evaluation implementation,
|
|
// by definition the generated implementation does not yet exist to be imported.
|
|
#else
|
|
// Included from client code, import generated implementation.
|
|
#include "@OUTPUT_DIRECTORY@/@LOWER_CASE_FUNCTOR_NAME@_evaluate_impl.inc"
|
|
#endif
|