Added install commands for generated header files

release/4.3a0
Alex Cunningham 2013-04-25 18:40:21 +00:00
parent 2b7d173c22
commit d8034f73c5
2 changed files with 9 additions and 2 deletions

View File

@ -150,7 +150,8 @@ endif()
# Write Eigen include file with the paths for either the system Eigen or the GTSAM-bundled Eigen
configure_file(gtsam/3rdparty/gtsam_eigen_includes.h.in gtsam/3rdparty/gtsam_eigen_includes.h)
# Install the configuration file for Eigen
install(FILES ${CMAKE_BINARY_DIR}/gtsam/3rdparty/gtsam_eigen_includes.h DESTINATION include/gtsam/3rdparty)
###############################################################################

View File

@ -44,6 +44,10 @@ else()
set(excluded_sources ${excluded_sources} "${CMAKE_CURRENT_SOURCE_DIR}/geometry/Rot3Q.cpp")
endif()
# Common headers
file(GLOB gtsam_core_headers "*.h")
install(FILES ${gtsam_core_headers} DESTINATION include/gtsam)
# assemble core libaries
foreach(subdir ${gtsam_subdirs})
# Build convenience libraries
@ -77,6 +81,7 @@ set(gtsam_srcs
${nonlinear_srcs}
${slam_srcs}
${navigation_srcs}
${gtsam_core_headers}
)
# Versions
@ -129,8 +134,9 @@ set_property(SOURCE "${CMAKE_CURRENT_SOURCE_DIR}/slam/dataset.cpp"
"SOURCE_TREE_DATASET_DIR=\"${CMAKE_SOURCE_DIR}/examples/Data\""
"INSTALLED_DATASET_DIR=\"${GTSAM_TOOLBOX_INSTALL_PATH}/gtsam_examples/Data\"")
# Generate config file
# Generate and install config file
configure_file(config.h.in config.h)
install(FILES ${CMAKE_BINARY_DIR}/gtsam/config.h DESTINATION include/gtsam)
# Create the matlab toolbox for the gtsam library
if (GTSAM_INSTALL_MATLAB_TOOLBOX)