Hi guys,
I'm just beginning to use Ceres. I have successfully installed Ceres and tried some examples. I test the simple_bundle_adjuster with the dataset problem-16-22106-pre.txt which is in the Ceres data folder. It works fine and there is the result:

Then I try to follow the tutorial using Ceres with Cmake, and implement this example as a standalone project. In my project folder, there are 3 files : CMakeLists.txt, simple_bundle_adjuster.cc(copied from ceres/example/), problem-16-22106-pre.txt(copied from ceres/data/), the CMakeLists.txt :
cmake_minimum_required(VERSION 2.8)
project(simple_ba)
find_package(Ceres REQUIRED)
include_directories(${CERES_INCLUDE_DIRS})
#
add_executable(simple_ba simple_bundle_adjuster.cc)
target_link_libraries(simple_ba ${CERES_LIBRARIES})However, it becomes extremely slow:

Now it takes 60s to evaluate the Jacobian. I couldn't figure out why it becomes such slow, I guess my CMakeLists.txt is too simple. But i don't know how to improve it.
Thanks in advance!
Tan.