Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openstructure
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
schwede
openstructure
Commits
b59eb6f6
Commit
b59eb6f6
authored
9 years ago
by
Studer Gabriel
Browse files
Options
Downloads
Patches
Plain Diff
make cmake ready for Eigen3
parent
2b7b4107
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CMakeLists.txt
+2
-2
2 additions, 2 deletions
CMakeLists.txt
cmake_support/FindEigen.cmake
+8
-9
8 additions, 9 deletions
cmake_support/FindEigen.cmake
modules/doc/install.rst
+1
-1
1 addition, 1 deletion
modules/doc/install.rst
with
11 additions
and
12 deletions
CMakeLists.txt
+
2
−
2
View file @
b59eb6f6
...
...
@@ -232,7 +232,7 @@ else()
set
(
PNG_LIBRARY
""
)
endif
()
find_package
(
Eigen
2.0
.0 REQUIRED
)
find_package
(
Eigen
3.2
.0 REQUIRED
)
find_package
(
Python 2.4 REQUIRED
)
if
(
USE_NUMPY
)
...
...
@@ -299,7 +299,7 @@ endif()
# basic environment
include_directories
(
${
Boost_INCLUDE_DIRS
}
${
FFTW_INCLUDE_DIRS
}
${
EIGEN
2
_INCLUDE_DIRS
}
${
EIGEN
3
_INCLUDE_DIRS
}
${
TIFF_INCLUDE_DIR
}
${
PNG_INCLUDE_DIRS
}
${
OPEN_MM_INCLUDE_DIRS
}
...
...
This diff is collapsed.
Click to expand it.
cmake_support/FindEigen.cmake
+
8
−
9
View file @
b59eb6f6
# - Try to find Eigen
2
lib
# - Try to find Eigen
3
lib
# Once done this will define
#
# EIGEN
2
_FOUND - system has eigen lib
# EIGEN
2
_INCLUDE_DIRS - the eigen include directories
# EIGEN
3
_FOUND - system has eigen lib
# EIGEN
3
_INCLUDE_DIRS - the eigen include directories
find_path
(
EIGEN2_INCLUDE_DIR NAMES Eigen/Core
PATH_SUFFIXES eigen2
PATH_SUFFIXES eigen3
find_path
(
EIGEN3_INCLUDE_DIR NAMES Eigen/Core
PATH_SUFFIXES eigen3
)
set
(
EIGEN
2
_INCLUDE_DIRS
${
EIGEN
2
_INCLUDE_DIR
}
)
set
(
EIGEN
3
_INCLUDE_DIRS
${
EIGEN
3
_INCLUDE_DIR
}
)
include
(
FindPackageHandleStandardArgs
)
find_package_handle_standard_args
(
EIGEN DEFAULT_MSG EIGEN
2
_INCLUDE_DIR
)
find_package_handle_standard_args
(
EIGEN DEFAULT_MSG EIGEN
3
_INCLUDE_DIR
)
mark_as_advanced
(
EIGEN
2
_INCLUDE_DIR
)
mark_as_advanced
(
EIGEN
3
_INCLUDE_DIR
)
...
...
This diff is collapsed.
Click to expand it.
modules/doc/install.rst
+
1
−
1
View file @
b59eb6f6
...
...
@@ -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.
* `CMake <http://cmake.org>`_ (2.6.4)
* `Eigen
2
<http://eigen.tuxfamily.org>`_ (2.0
.6
)
* `Eigen
3
<http://eigen.tuxfamily.org>`_ (
3.
2.0)
* `Boost <http://boost.org>`_ (1.47)
* `libpng <http://www.libpng.org>`_
* `Python <http://python.org>`_ (2.7)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment