blob: db938c7b78b438c532292ab2cffd9f02b366c3e5 (
plain)
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
|
#
# Try to find X library and include path.
# Once done this will define
#
# GBE_FOUND
# GBE_INCLUDE_PATH
# GBE_LIBRARY
#
FIND_PATH(GBE_INCLUDE_PATH gen/program.h
~/include/
/usr/include/
/usr/local/include/
/sw/include/
/opt/local/include/
DOC "The directory where gen/program.h resides")
FIND_LIBRARY(GBE_LIBRARY
NAMES GBE gbe
PATHS
~/lib/
/usr/lib64
/usr/lib
/usr/local/lib64
/usr/local/lib
/sw/lib
/opt/local/lib
DOC "The GBE library")
IF(GBE_INCLUDE_PATH)
INCLUDE_DIRECTORIES(${GBE_INCLUDE_PATH})
SET(GBE_FOUND 1 CACHE STRING "Set to 1 if GBE is found, 0 otherwise")
ELSE(GBE_INCLUDE_PATH)
SET(GBE_FOUND 0 CACHE STRING "Set to 1 if GBE is found, 0 otherwise")
ENDIF(GBE_INCLUDE_PATH)
MARK_AS_ADVANCED(GBE_FOUND)
|