mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 16:40:38 +08:00
Add public headers to CMake target for IDEs.
Change-Id: I952c5005689d34bdb7b89820b3aee62f3dcf6fd6
This commit is contained in:
@@ -121,6 +121,14 @@ set(CERES_INTERNAL_SRC
|
||||
|
||||
# Also depend on the header files so that they appear in IDEs.
|
||||
file(GLOB CERES_INTERNAL_HDRS *.h)
|
||||
if (MINIGLOG)
|
||||
file(GLOB MINIGLOG_HDRS miniglog/glog/*.h)
|
||||
list(APPEND CERES_INTERNAL_HDRS ${MINIGLOG_HDRS})
|
||||
endif()
|
||||
|
||||
# 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)
|
||||
|
||||
# Include the specialized schur solvers.
|
||||
if (SCHUR_SPECIALIZATIONS)
|
||||
@@ -173,6 +181,8 @@ endif (OPENMP_FOUND)
|
||||
set(CERES_LIBRARY_SOURCE
|
||||
${CERES_INTERNAL_SRC}
|
||||
${CERES_INTERNAL_HDRS}
|
||||
${CERES_PUBLIC_HDRS}
|
||||
${CERES_PUBLIC_INTERNAL_HDRS}
|
||||
${CERES_INTERNAL_SCHUR_FILES})
|
||||
|
||||
# Primarily for Android, but optionally for others, compile the minimal
|
||||
|
||||
Reference in New Issue
Block a user