Revision 99, 1.5 KB
(checked in by anton, 3 years ago)
|
GAUL utils library location fixed
|
Line | |
---|
1 | # - Find GAUL |
---|
2 | # Find the GAUL includes and client library |
---|
3 | # This module defines |
---|
4 | # GAUL_LIBRARIES, the libraries needed to use GAUL. |
---|
5 | # GAUL_FOUND, If false, do not try to use GAUL. |
---|
6 | # |
---|
7 | |
---|
8 | if(GAUL_INCLUDE_DIR AND GAUL_LIBRARIES AND GAUL_UTIL_LIBRARIES) |
---|
9 | set(GAUL_FOUND TRUE) |
---|
10 | |
---|
11 | else(GAUL_INCLUDE_DIR AND GAUL_LIBRARIES AND GAUL_UTIL_LIBRARIES) |
---|
12 | |
---|
13 | FIND_PATH(GAUL_INCLUDE_DIR gaul.h |
---|
14 | /usr/include |
---|
15 | /usr/local/include |
---|
16 | $ENV{ProgramFiles}/gaul/*/include |
---|
17 | $ENV{SystemDrive}/gaul/*/include |
---|
18 | ) |
---|
19 | |
---|
20 | find_library(GAUL_LIBRARIES NAMES gaul libgaul |
---|
21 | PATHS |
---|
22 | /usr/lib |
---|
23 | /usr/local/lib |
---|
24 | /usr/lib/gaul |
---|
25 | /usr/lib64 |
---|
26 | /usr/local/lib64 |
---|
27 | /usr/lib64/gaul |
---|
28 | $ENV{ProgramFiles}/GAUL/*/lib/ |
---|
29 | $ENV{SystemDrive}/GAUL/*/lib/ |
---|
30 | ) |
---|
31 | |
---|
32 | find_library(GAUL_UTIL_LIBRARIES NAMES gaul_util libgaul_util |
---|
33 | PATHS |
---|
34 | /usr/lib |
---|
35 | /usr/local/lib |
---|
36 | /usr/lib/gaul |
---|
37 | /usr/lib64 |
---|
38 | /usr/local/lib64 |
---|
39 | /usr/lib64/gaul |
---|
40 | $ENV{ProgramFiles}/GAUL/*/lib/ |
---|
41 | $ENV{SystemDrive}/GAUL/*/lib/ |
---|
42 | ) |
---|
43 | |
---|
44 | if(GAUL_INCLUDE_DIR AND GAUL_LIBRARIES AND GAUL_UTIL_LIBRARIES) |
---|
45 | set(GAUL_FOUND TRUE) |
---|
46 | message(STATUS "Found GAUL: ${GAUL_LIBRARIES}, ${GAUL_UTIL_LIBRARIES}") |
---|
47 | else(GAUL_INCLUDE_DIR AND GAUL_LIBRARIES AND GAUL_UTIL_LIBRARIES) |
---|
48 | set(GAUL_FOUND FALSE) |
---|
49 | message(STATUS "GAUL not found.") |
---|
50 | endif(GAUL_INCLUDE_DIR AND GAUL_LIBRARIES AND GAUL_UTIL_LIBRARIES) |
---|
51 | |
---|
52 | mark_as_advanced(GAUL_INCLUDE_DIR GAUL_LIBRARIES GAUL_UTIL_LIBRARIES) |
---|
53 | |
---|
54 | endif(GAUL_INCLUDE_DIR AND GAUL_LIBRARIES AND GAUL_UTIL_LIBRARIES) |
---|