Skip to content
Snippets Groups Projects
Commit e96814e0 authored by Lars Bilke's avatar Lars Bilke Committed by Dmitri Naumov
Browse files

Added FindCVODE.cmake and search for it in Find.cmake.

parent 4bc76709
No related branches found
No related tags found
No related merge requests found
...@@ -146,3 +146,6 @@ if(Shapelib_FOUND) ...@@ -146,3 +146,6 @@ if(Shapelib_FOUND)
elseif(OGS_BUILD_GUI) elseif(OGS_BUILD_GUI)
message(FATAL_ERROR "Shapelib not found but it is required for OGS_BUILD_GUI!") message(FATAL_ERROR "Shapelib not found but it is required for OGS_BUILD_GUI!")
endif() endif()
## Sundials cvode ode-solver library
find_package(CVODE)
# Tries to find Sundials CVODE.
#
# This module will define the following variables:
# CVODE_INCLUDE_DIRS - Location of the CVODE includes
# CVODE_FOUND - true if CVODE was found on the system
# CVODE_LIBRARIES - Required libraries for all requested components
#
# This module accepts the following environment or CMake vars
# CVODE_ROOT - Install location to search for
include(FindPackageHandleStandardArgs)
if(NOT "$ENV{CVODE_ROOT}" STREQUAL "" OR NOT "${CVODE_ROOT}" STREQUAL "")
list(APPEND CMAKE_INCLUDE_PATH "$ENV{CVODE_ROOT}" "${CVODE_ROOT}")
list(APPEND CMAKE_LIBRARY_PATH "$ENV{CVODE_ROOT}" "${CVODE_ROOT}")
endif()
find_path(CVODE_INCLUDE_DIRS sundials_types.h
ENV CVODE_ROOT
PATH_SUFFIXES include include/sundials
)
find_library(CVODE_LIBRARIES
NAMES sundials_cvode
ENV CVODE_ROOT
PATH_SUFFIXES lib Lib
)
find_package_handle_standard_args(CVODE DEFAULT_MSG
CVODE_LIBRARIES
CVODE_INCLUDE_DIRS
)
mark_as_advanced(CVODE_INCLUDE_DIRS CVODE_LIBRARIES)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment