Skip to content
Snippets Groups Projects
Commit b59eb6f6 authored by Studer Gabriel's avatar Studer Gabriel
Browse files

make cmake ready for Eigen3

parent 2b7b4107
Branches
Tags
No related merge requests found
...@@ -232,7 +232,7 @@ else() ...@@ -232,7 +232,7 @@ else()
set (PNG_LIBRARY "") set (PNG_LIBRARY "")
endif() endif()
find_package(Eigen 2.0.0 REQUIRED) find_package(Eigen 3.2.0 REQUIRED)
find_package(Python 2.4 REQUIRED) find_package(Python 2.4 REQUIRED)
if(USE_NUMPY) if(USE_NUMPY)
...@@ -299,7 +299,7 @@ endif() ...@@ -299,7 +299,7 @@ endif()
# basic environment # basic environment
include_directories(${Boost_INCLUDE_DIRS} include_directories(${Boost_INCLUDE_DIRS}
${FFTW_INCLUDE_DIRS} ${FFTW_INCLUDE_DIRS}
${EIGEN2_INCLUDE_DIRS} ${EIGEN3_INCLUDE_DIRS}
${TIFF_INCLUDE_DIR} ${TIFF_INCLUDE_DIR}
${PNG_INCLUDE_DIRS} ${PNG_INCLUDE_DIRS}
${OPEN_MM_INCLUDE_DIRS} ${OPEN_MM_INCLUDE_DIRS}
......
# - Try to find Eigen2 lib # - Try to find Eigen3 lib
# Once done this will define # Once done this will define
# #
# EIGEN2_FOUND - system has eigen lib # EIGEN3_FOUND - system has eigen lib
# EIGEN2_INCLUDE_DIRS - the eigen include directories # EIGEN3_INCLUDE_DIRS - the eigen include directories
find_path(EIGEN2_INCLUDE_DIR NAMES Eigen/Core find_path(EIGEN3_INCLUDE_DIR NAMES Eigen/Core
PATH_SUFFIXES eigen2 PATH_SUFFIXES eigen3
PATH_SUFFIXES eigen3
) )
set(EIGEN2_INCLUDE_DIRS ${EIGEN2_INCLUDE_DIR}) set(EIGEN3_INCLUDE_DIRS ${EIGEN3_INCLUDE_DIR})
include (FindPackageHandleStandardArgs) include (FindPackageHandleStandardArgs)
find_package_handle_standard_args (EIGEN DEFAULT_MSG EIGEN2_INCLUDE_DIR) find_package_handle_standard_args (EIGEN DEFAULT_MSG EIGEN3_INCLUDE_DIR)
mark_as_advanced (EIGEN2_INCLUDE_DIR) mark_as_advanced (EIGEN3_INCLUDE_DIR)
......
...@@ -28,7 +28,7 @@ Installing the Dependencies ...@@ -28,7 +28,7 @@ Installing the Dependencies
OpenStructure uses a bunch of OpenSource libraries. If you haven't already installed them, please install them now! Where appropriate the minimally required version is given in parantheses. OpenStructure uses a bunch of OpenSource libraries. If you haven't already installed them, please install them now! Where appropriate the minimally required version is given in parantheses.
* `CMake <http://cmake.org>`_ (2.6.4) * `CMake <http://cmake.org>`_ (2.6.4)
* `Eigen2 <http://eigen.tuxfamily.org>`_ (2.0.6) * `Eigen3 <http://eigen.tuxfamily.org>`_ (3.2.0)
* `Boost <http://boost.org>`_ (1.47) * `Boost <http://boost.org>`_ (1.47)
* `libpng <http://www.libpng.org>`_ * `libpng <http://www.libpng.org>`_
* `Python <http://python.org>`_ (2.7) * `Python <http://python.org>`_ (2.7)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment