Remove unneeded Eigen include config file, and minor cleanup
parent
e565213c0f
commit
88e0ae3f7a
|
@ -200,8 +200,6 @@ option(GTSAM_USE_SYSTEM_EIGEN "Find and use system-installed Eigen. If 'off', us
|
||||||
|
|
||||||
# Switch for using system Eigen or GTSAM-bundled Eigen
|
# Switch for using system Eigen or GTSAM-bundled Eigen
|
||||||
if(GTSAM_USE_SYSTEM_EIGEN)
|
if(GTSAM_USE_SYSTEM_EIGEN)
|
||||||
|
|
||||||
|
|
||||||
find_package(Eigen3 REQUIRED)
|
find_package(Eigen3 REQUIRED)
|
||||||
include_directories(AFTER "${EIGEN3_INCLUDE_DIR}")
|
include_directories(AFTER "${EIGEN3_INCLUDE_DIR}")
|
||||||
|
|
||||||
|
@ -222,18 +220,12 @@ else()
|
||||||
# with #include <Eigen/Core>
|
# with #include <Eigen/Core>
|
||||||
include_directories(BEFORE "gtsam/3rdparty/Eigen/")
|
include_directories(BEFORE "gtsam/3rdparty/Eigen/")
|
||||||
|
|
||||||
# set full path, to be used by external projects
|
# set full path to be used by external projects
|
||||||
# this will be added to GTSAM_INCLUDE_DIR by gtsam_extra.cmake.in
|
# this will be added to GTSAM_INCLUDE_DIR by gtsam_extra.cmake.in
|
||||||
set(GTSAM_EIGEN_INCLUDE_PREFIX "${CMAKE_INSTALL_PREFIX}/include/gtsam/3rdparty/Eigen/")
|
set(GTSAM_EIGEN_INCLUDE_PREFIX "${CMAKE_INSTALL_PREFIX}/include/gtsam/3rdparty/Eigen/")
|
||||||
|
|
||||||
endif()
|
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 ${PROJECT_BINARY_DIR}/gtsam/3rdparty/gtsam_eigen_includes.h DESTINATION include/gtsam/3rdparty)
|
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# Global compile options
|
# Global compile options
|
||||||
|
|
||||||
|
|
|
@ -1,33 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
|
|
||||||
* GTSAM Copyright 2010, Georgia Tech Research Corporation,
|
|
||||||
* Atlanta, Georgia 30332-0415
|
|
||||||
* All Rights Reserved
|
|
||||||
* Authors: Frank Dellaert, et al. (see THANKS for the full author list)
|
|
||||||
|
|
||||||
* See LICENSE for the license information
|
|
||||||
|
|
||||||
* -------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @file gtsam_eigen_includes.h
|
|
||||||
* @brief File to include the Eigen headers that we use - generated by CMake
|
|
||||||
* @author Richard Roberts
|
|
||||||
*/
|
|
||||||
|
|
||||||
#pragma once
|
|
||||||
|
|
||||||
#ifndef MKL_BLAS
|
|
||||||
#define MKL_BLAS MKL_DOMAIN_BLAS
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#cmakedefine EIGEN_USE_MKL_ALL // This is also defined in config.h
|
|
||||||
#include <@GTSAM_EIGEN_INCLUDE_PREFIX@Eigen/Dense>
|
|
||||||
#include <@GTSAM_EIGEN_INCLUDE_PREFIX@Eigen/QR>
|
|
||||||
#include <@GTSAM_EIGEN_INCLUDE_PREFIX@Eigen/LU>
|
|
||||||
#include <@GTSAM_EIGEN_INCLUDE_PREFIX@Eigen/SVD>
|
|
||||||
#include <@GTSAM_EIGEN_INCLUDE_PREFIX@Eigen/Geometry>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue