- 3.0.2 core module.
CodegenTests.cpp

This unit test serves as example how to use automatic code generation with CppAD

/**********************************************************************************************************************
This file is part of the Control Toolbox (https://github.com/ethz-adrl/control-toolbox), copyright by ETH Zurich.
Licensed under the BSD-2 license (see LICENSE file in main directory)
**********************************************************************************************************************/
// Bring in gtest
#include <gtest/gtest.h>
#include <cppad/cg.hpp>
#include <cppad/cppad.hpp>
#include <cppad/example/cppad_eigen.hpp>
#include <ct/core/core.h>
// Bring in gtest
#include <gtest/gtest.h>
using namespace ct::core;
using std::shared_ptr;
// codegen tests cannot run in parallel. Thus we include all tests here and run them together
int main(int argc, char** argv)
{
testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}