This unit test serves as example how to use automatic code generation with CppAD
#include <gtest/gtest.h>
#include <cppad/cg.hpp>
#include <cppad/cppad.hpp>
#include <cppad/example/cppad_eigen.hpp>
#include <gtest/gtest.h>
using std::shared_ptr;
int main(
int argc,
char** argv)
{
testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}