-
Notifications
You must be signed in to change notification settings - Fork 1
/
FindCellML.cmake
52 lines (47 loc) · 1.59 KB
/
FindCellML.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# - Find CellML
# Find the CellML API includes and library
# This module defines
# CELLML_INCLUDE_DIR, where to find CellML API header files.
# CELLML_LIBRARIES, the libraries needed to use the CellML API.
# CELLML_FOUND, If false, do not try to use the CellML API.
# also defined, but not for general use are
# CELLML_LIBRARY, where to find the CellML library.
FIND_PATH(CELLML_INCLUDE_DIR IfaceCellML_APISPEC.hxx
/usr/include/
/usr/local/include/
)
FIND_LIBRARY(CELLML_LIBRARY cellml
/usr/lib
/usr/local/lib
)
FIND_LIBRARY(ANNO_TOOLS_LIBRARY annotools
/usr/lib
/usr/local/lib
)
FIND_LIBRARY(CEVAS_LIBRARY cevas
/usr/lib
/usr/local/lib
)
FIND_LIBRARY(CUSES_LIBRARY cuses
/usr/lib
/usr/local/lib
)
FIND_LIBRARY(MALAES_LIBRARY malaes
/usr/lib
/usr/local/lib
)
IF (CELLML_INCLUDE_DIR AND CELLML_LIBRARY AND ANNO_TOOLS_LIBRARY AND CEVAS_LIBRARY AND CUSES_LIBRARY AND MALAES_LIBRARY)
SET(CELLML_LIBRARIES ${CELLML_LIBRARY} ${ANNO_TOOLS_LIBRARY} ${CEVAS_LIBRARY} ${CUSES_LIBRARY} ${MALAES_LIBRARY})
SET(CELLML_FOUND TRUE)
ENDIF (CELLML_INCLUDE_DIR AND CELLML_LIBRARY AND ANNO_TOOLS_LIBRARY AND CEVAS_LIBRARY AND CUSES_LIBRARY AND MALAES_LIBRARY)
IF (CELLML_FOUND)
IF (NOT CellML_FIND_QUIETLY)
MESSAGE(STATUS "Found CellML: ${CELLML_LIBRARIES}")
ENDIF (NOT CellML_FIND_QUIETLY)
ELSE (CELLML_FOUND)
IF (CellML_FIND_REQUIRED)
MESSAGE(FATAL_ERROR "Could not find CellML")
ELSE (CellML_FIND_REQUIRED)
MESSAGE(STATUS "CellML API not found")
ENDIF (CellML_FIND_REQUIRED)
ENDIF (CELLML_FOUND)