Commit 1e42cfcb authored by David Bommes's avatar David Bommes
Browse files

added EigenFinder

added MumpsFinder
updated CoMISoFinder

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@12249 383ad7c9-94d9-4d36-a494-682f7c89f535
parent cb596a5d
......@@ -14,7 +14,7 @@ ENDIF (COMISO_INCLUDE_DIR)
# Find CoMISo config file
FIND_PATH( COMISO_INCLUDE_DIR CoMISo/Config/config.hh
PATHS "${CMAKE_SOURCE_DIR}/libs/" )
PATHS "${CMAKE_SOURCE_DIR}/../" "${CMAKE_SOURCE_DIR}/libs/" )
if ( COMISO_INCLUDE_DIR )
......@@ -65,6 +65,20 @@ if ( COMISO_INCLUDE_DIR )
endif()
STRING(REGEX MATCH "\#define COMISO_MUMPS_AVAILABLE 1" COMISO_MUMPS_BUILD_TIME_AVAILABLE ${CURRENT_COMISO_CONFIG} )
if ( COMISO_MUMPS_BUILD_TIME_AVAILABLE )
find_package(MUMPS)
if ( NOT MUMPS_FOUND )
message(ERROR "COMISO configured with mumps but mumps not available")
endif()
list (APPEND COMISO_OPT_DEPS "MUMPS")
endif()
STRING(REGEX MATCH "\#define COMISO_TAO_AVAILABLE 1" COMISO_TAO_BUILD_TIME_AVAILABLE ${CURRENT_COMISO_CONFIG} )
if ( COMISO_TAO_BUILD_TIME_AVAILABLE )
......
# - Find Eigen3
# Find the native GMM headers and libraries.
#
# Eigen3_INCLUDE_DIR - where to find <Eigen/Dense>, etc.
# Eigen3_FOUND - True if Eigen3 found.
IF (Eigen3_INCLUDE_DIR)
# Already in cache, be silent
SET(Eigen3_FIND_QUIETLY TRUE)
ENDIF (Eigen3_INCLUDE_DIR)
GET_FILENAME_COMPONENT(module_file_path ${CMAKE_CURRENT_LIST_FILE} PATH )
# Look for the header file.
FIND_PATH(Eigen3_INCLUDE_DIR NAMES Eigen/Dense
PATHS /usr/include/eigen3
/usr/local/include
"c:\\libs\\eigen3\\include"
${PROJECT_SOURCE_DIR}/MacOS/Libs/eigen3/include
../../External/include
${module_file_path}/../../../External/include)
# Copy the results to the output variables.
IF(Eigen3_INCLUDE_DIR )
SET(Eigen3_FOUND 1)
SET(Eigen3_INCLUDE_DIR ${Eigen3_INCLUDE_DIR})
ELSE(Eigen3_INCLUDE_DIR )
SET(Eigen3_FOUND 0)
SET(Eigen3_INCLUDE_DIR)
ENDIF(Eigen3_INCLUDE_DIR )
# Report the results.
IF(NOT Eigen3_FOUND)
SET(Eigen3_DIR_MESSAGE
"Eigen3 was not found. Make sure Eigen3_INCLUDE_DIR is set to the directories containing the include and lib files for Eigen3. .")
ELSE (NOT Eigen3_FOUND)
IF(NOT Eigen3_FIND_QUIETLY)
MESSAGE(STATUS "Looking for Eigen3 - found")
ENDIF(NOT Eigen3_FIND_QUIETLY)
ENDIF(NOT Eigen3_FOUND)
if (MUMPS_INCLUDE_DIR)
# in cache already
SET(MUMPS_FIND_QUIETLY TRUE)
endif (MUMPS_INCLUDE_DIR)
if (WIN32)
#TODO
ELSEIF(APPLE)
#TODO
ELSE( WIN32 )
find_path(MUMPS_INCLUDE_DIR NAMES dmumps_c.h
PATHS "/usr/include/"
)
IF(MUMPS_INCLUDE_DIR)
SET(MUMPS_FOUND TRUE)
SET(MUMPS_INCLUDE_DIR ${MUMPS_INCLUDE_DIR})
ELSE(MUMPS_INCLUDE_DIR)
SET(MUMPS_FOUND FALSE)
SET(MUMPS_INCLUDE_DIR ${IPOPT_INCLUDE_DIR})
ENDIF(MUMPS_INCLUDE_DIR)
find_library( MUMPS_LIBRARY
dmumps
PATHS "/usr/lib" )
ENDIF()
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment