forked from LLNL/MACSio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFindSILO.cmake
38 lines (33 loc) · 840 Bytes
/
FindSILO.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
# - Try to find libsilo
# Once done this will define
# SILO_FOUND - System has libsilo
# SILO_INCLUDE_DIRS - The libsilo include directories
# SILO_LIBRARIES - The libraries needed to use libsilo
FIND_PATH(WITH_SILO_PREFIX
NAMES include/silo.h
HINTS /usr/gapps/silo/current/$ENV{SYS_TYPE}/
)
FIND_LIBRARY(SILO_LIBRARIES
NAMES siloh5
HINTS ${WITH_SILO_PREFIX}/lib
)
IF(NOT SILO_LIBRARIES)
FIND_LIBRARY(SILO_LIBRARIES
NAMES silo
HINTS ${WITH_SILO_PREFIX}/lib
)
ENDIF(NOT SILO_LIBRARIES)
FIND_PATH(SILO_INCLUDE_DIRS
NAMES silo.h
HINTS ${WITH_SILO_PREFIX}/include
)
INCLUDE(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(SILO DEFAULT_MSG
SILO_LIBRARIES
SILO_INCLUDE_DIRS
)
# Hide these vars from ccmake GUI
MARK_AS_ADVANCED(
SILO_LIBRARIES
SILO_INCLUDE_DIRS
)