forked from dcoeurjo/QuasiAffineTransform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFindLongvol.cmake
59 lines (44 loc) · 1.24 KB
/
FindLongvol.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
53
54
55
56
57
58
#-*-cmake-*-
#
# Test for LibVol libraries
#
# Once loaded this will define
# LONGVOL_FOUND - system has libvol
# LONGVOL_INCLUDE_DIR - include directory
# LONGVOL_LIBRARY_DIR - library directory
# LONGVOL_LIBRARIES - libraries you need to link to
#
SET(LONGVOL_FOUND "NO" )
FIND_PATH( LONGVOL_INCLUDE_DIR longvol.h
"$ENV{LONGVOL_LOCATION}"
"$ENV{LONGVOL_LOCATION}/include"
"$ENV{LONGVOL_HOME}/include"
/usr/include/
/usr/local/include/
)
FIND_LIBRARY(Longvol longvol
PATHS
"$ENV{LONGVOL_LOCATION}/"
"$ENV{LONGVOL_LOCATION}/lib"
"$ENV{LONGVOL_HOME}/lib"
DOC "libvol library"
)
SET(LONGVOL_LIBRARIES ${Longvol} )
IF (LONGVOL_INCLUDE_DIR)
IF(LONGVOL_LIBRARIES)
SET(LONGVOL_FOUND "YES")
GET_FILENAME_COMPONENT(LONGVOL_LIBRARY_DIR ${Longvol} PATH)
ENDIF(LONGVOL_LIBRARIES)
ENDIF(LONGVOL_INCLUDE_DIR)
IF(NOT LONGVOL_FOUND)
# make FIND_PACKAGE friendly
IF(NOT Vol_FIND_QUIETLY)
IF(Vol_FIND_REQUIRED)
MESSAGE(FATAL_ERROR
"libvol required, please specify it's location with LONGVOL_HOME, LONGVOL_LOCATION")
ELSE(Vol_FIND_REQUIRED)
MESSAGE(STATUS "liblongvol was not found.")
ENDIF(Vol_FIND_REQUIRED)
ENDIF(NOT Vol_FIND_QUIETLY)
ENDIF(NOT LONGVOL_FOUND)
#####