List all public internal headers in the Ceres target

The glob of the generated headers replaced the headers found in the
source tree, and missed export.h on the first configure because it is
generated afterwards, so these headers did not show up in IDEs.

Append the generated headers explicitly to the source tree headers.

Change-Id: Ieda4aad00462268295336b4195c8409257eafa77
diff --git a/internal/ceres/CMakeLists.txt b/internal/ceres/CMakeLists.txt
index de2261e..d7e1ff5 100644
--- a/internal/ceres/CMakeLists.txt
+++ b/internal/ceres/CMakeLists.txt
@@ -83,8 +83,11 @@
 # Depend also on public headers so they appear in IDEs.
 file(GLOB CERES_PUBLIC_HDRS ${Ceres_SOURCE_DIR}/include/ceres/*.h)
 file(GLOB CERES_PUBLIC_INTERNAL_HDRS ${Ceres_SOURCE_DIR}/include/ceres/internal/*.h)
-file(GLOB CERES_PUBLIC_INTERNAL_HDRS
-  ${Ceres_BINARY_DIR}/${CMAKE_INSTALL_INCLUDEDIR}/ceres/internal/*.h)
+# The generated headers are listed explicitly because export.h does not exist
+# yet when configuring for the first time.
+list(APPEND CERES_PUBLIC_INTERNAL_HDRS
+  ${Ceres_BINARY_DIR}/${CMAKE_INSTALL_INCLUDEDIR}/ceres/internal/config.h
+  ${Ceres_BINARY_DIR}/${CMAKE_INSTALL_INCLUDEDIR}/ceres/internal/export.h)
 
 # Include the specialized schur solvers.
 if (WITH_SCHUR_SPECIALIZATIONS)