Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenFlipper-Free
OpenFlipper
Commits
bea8d855
Commit
bea8d855
authored
Dec 02, 2020
by
Martin Heistermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CMake: use official Eigen3 finder.
parent
cb038a5b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
72 deletions
+6
-72
cmake/FindCoMISo.cmake
cmake/FindCoMISo.cmake
+2
-2
cmake/FindEIGEN3.cmake
cmake/FindEIGEN3.cmake
+0
-70
cmake/plugin.cmake
cmake/plugin.cmake
+4
-0
No files found.
cmake/FindCoMISo.cmake
View file @
bea8d855
...
...
@@ -218,9 +218,9 @@ if ( COMISO_INCLUDE_DIR AND COMISO_CONFIG_INCLUDE_DIR )
if
(
COMISO_EIGEN3_BUILD_TIME_AVAILABLE
)
find_package
(
E
IGEN
3
)
find_package
(
E
igen
3
)
if
(
NOT
EIGEN3_FOUND
)
if
(
NOT
TARGET Eigen3::Eigen
)
message
(
ERROR
"COMISO configured with EIGEN3 but EIGEN3 not available"
)
endif
()
...
...
cmake/FindEIGEN3.cmake
deleted
100644 → 0
View file @
cb038a5b
# - Try to find EIGEN3
# Once done this will define
# EIGEN3_FOUND - System has EIGEN3
# EIGEN3_INCLUDE_DIRS - The EIGEN3 include directories
if
(
EIGEN3_INCLUDE_DIR
)
# in cache already
set
(
EIGEN3_FOUND TRUE
)
set
(
EIGEN3_INCLUDE_DIRS
"
${
EIGEN3_INCLUDE_DIR
}
"
)
else
(
EIGEN3_INCLUDE_DIR
)
# Check if the base path is set
if
(
NOT CMAKE_WINDOWS_LIBS_DIR
)
# This is the base directory for windows library search used in the finders we shipp.
set
(
CMAKE_WINDOWS_LIBS_DIR
"c:/libs"
CACHE STRING
"Default Library search dir on windows."
)
endif
()
if
(
CMAKE_GENERATOR MATCHES
"^Visual Studio 11.*Win64"
)
SET
(
VS_SEARCH_PATH
"
${
CMAKE_WINDOWS_LIBS_DIR
}
/vs2012/x64/"
)
elseif
(
CMAKE_GENERATOR MATCHES
"^Visual Studio 11.*"
)
SET
(
VS_SEARCH_PATH
"
${
CMAKE_WINDOWS_LIBS_DIR
}
/vs2012/x32/"
)
elseif
(
CMAKE_GENERATOR MATCHES
"^Visual Studio 12.*Win64"
)
SET
(
VS_SEARCH_PATH
"
${
CMAKE_WINDOWS_LIBS_DIR
}
/vs2013/x64/"
)
elseif
(
CMAKE_GENERATOR MATCHES
"^Visual Studio 12.*"
)
SET
(
VS_SEARCH_PATH
"
${
CMAKE_WINDOWS_LIBS_DIR
}
/vs2013/x32/"
)
elseif
(
CMAKE_GENERATOR MATCHES
"^Visual Studio 14.*Win64"
)
SET
(
VS_SEARCH_PATH
"
${
CMAKE_WINDOWS_LIBS_DIR
}
/vs2015/x64/"
)
elseif
(
CMAKE_GENERATOR MATCHES
"^Visual Studio 14.*"
)
SET
(
VS_SEARCH_PATH
"
${
CMAKE_WINDOWS_LIBS_DIR
}
/vs2015/x32/"
)
elseif
(
CMAKE_GENERATOR MATCHES
"^Visual Studio 15.*Win64"
)
SET
(
VS_SEARCH_PATH
"
${
CMAKE_WINDOWS_LIBS_DIR
}
/vs2017/x64/"
)
elseif
(
CMAKE_GENERATOR MATCHES
"^Visual Studio 15.*"
)
SET
(
VS_SEARCH_PATH
"
${
CMAKE_WINDOWS_LIBS_DIR
}
/vs2017/x32/"
)
endif
()
find_path
(
EIGEN3_INCLUDE_DIR
NAMES Eigen/Dense
PATHS $ENV{EIGEN_DIR}
/usr/include/eigen3
/usr/local/include
/usr/local/include/eigen3/
/opt/local/include/eigen3/
"
${
CMAKE_WINDOWS_LIBS_DIR
}
/general/Eigen-3.3.4"
"
${
CMAKE_WINDOWS_LIBS_DIR
}
/general/Eigen-3.2.8"
"
${
CMAKE_WINDOWS_LIBS_DIR
}
/general/Eigen-3.2.6"
"
${
CMAKE_WINDOWS_LIBS_DIR
}
/Eigen-3.2.6"
"
${
CMAKE_WINDOWS_LIBS_DIR
}
/Eigen-3.2.6/include"
"
${
CMAKE_WINDOWS_LIBS_DIR
}
/Eigen-3.2.1"
"
${
CMAKE_WINDOWS_LIBS_DIR
}
/Eigen-3.2.1/include"
"
${
CMAKE_WINDOWS_LIBS_DIR
}
/Eigen-3.2/include"
"
${
CMAKE_WINDOWS_LIBS_DIR
}
/eigen3/include"
"
${
CMAKE_WINDOWS_LIBS_DIR
}
/eigen/include"
${
PROJECT_SOURCE_DIR
}
/MacOS/Libs/eigen3/include
../../External/include
${
module_file_path
}
/../../../External/include
)
set
(
EIGEN3_INCLUDE_DIRS
"
${
EIGEN3_INCLUDE_DIR
}
"
)
include
(
FindPackageHandleStandardArgs
)
# handle the QUIETLY and REQUIRED arguments and set LIBCPLEX_FOUND to TRUE
# if all listed variables are TRUE
find_package_handle_standard_args
(
EIGEN3 DEFAULT_MSG
EIGEN3_INCLUDE_DIR
)
mark_as_advanced
(
EIGEN3_INCLUDE_DIR
)
endif
(
EIGEN3_INCLUDE_DIR
)
cmake/plugin.cmake
View file @
bea8d855
...
...
@@ -249,6 +249,10 @@ macro (_check_plugin_deps _prefix _optional )
if
(
NOT
${
_VAL
}
_FOUND AND NOT
${
_val
}
_FOUND
)
# MESSAGE(STATUS "Looking for _val \"${_val}\"")
set
(
package_name
${
_val
}
)
if
(
${
package_name
}
STREQUAL
"EIGEN3"
)
set
(
package_name Eigen3
)
endif
()
find_package
(
${
_val
}
)
list
(
APPEND LOADED_PACKAGES_
"
${
_val
}
"
)
#else()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment