Revision 35, 1.1 kB
(checked in by mido, 17 years ago)
|
zasadni zmeny ve /win32
|
Line | |
---|
1 | # - Find ACML |
---|
2 | # Find the native ACML includes and library |
---|
3 | # This module defines |
---|
4 | # ACML_INCLUDE_DIR, where to find acml.h, etc. |
---|
5 | # ACML_LIBRARIES, the libraries needed to use ACML. |
---|
6 | # ACML_FOUND, If false, do not try to use ACML. |
---|
7 | # also defined, but not for general use are |
---|
8 | # ACML_LIBRARY, where to find the ACML library. |
---|
9 | |
---|
10 | FIND_PATH(ACML_INCLUDE_DIR acml.h |
---|
11 | "${ACML_DIR}\\pgi32\\include" |
---|
12 | ) |
---|
13 | |
---|
14 | FIND_LIBRARY(ACML_LIBRARY |
---|
15 | NAMES libacml_dll |
---|
16 | PATHS "${ACML_DIR}\\pgi32\\lib" |
---|
17 | ) |
---|
18 | |
---|
19 | IF (ACML_LIBRARY AND ACML_INCLUDE_DIR) |
---|
20 | SET(ACML_LIBRARIES ${ACML_LIBRARY}) |
---|
21 | SET(ACML_FOUND "YES") |
---|
22 | ELSE (ACML_LIBRARY AND ACML_INCLUDE_DIR) |
---|
23 | SET(ACML_FOUND "NO") |
---|
24 | ENDIF (ACML_LIBRARY AND ACML_INCLUDE_DIR) |
---|
25 | |
---|
26 | |
---|
27 | IF (ACML_FOUND) |
---|
28 | IF (NOT ACML_FIND_QUIETLY) |
---|
29 | MESSAGE(STATUS "Found ACML: ${ACML_LIBRARIES}") |
---|
30 | ENDIF (NOT ACML_FIND_QUIETLY) |
---|
31 | ELSE (ACML_FOUND) |
---|
32 | IF (ACML_FIND_REQUIRED) |
---|
33 | MESSAGE(FATAL_ERROR "Could not find ACML library") |
---|
34 | ENDIF (ACML_FIND_REQUIRED) |
---|
35 | ENDIF (ACML_FOUND) |
---|
36 | |
---|
37 | # Deprecated declarations. |
---|
38 | GET_FILENAME_COMPONENT (NATIVE_ACML_LIB_PATH ${ACML_LIBRARY} PATH) |
---|
39 | |
---|
40 | MARK_AS_ADVANCED( |
---|
41 | ACML_LIBRARY |
---|
42 | ACML_INCLUDE_DIR |
---|
43 | ) |
---|