Revision 31, 1.2 kB
(checked in by mido, 17 years ago)
|
snaha o rozbehani cmaku pod win xp, zatim ale neuspesna
|
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 | |
---|
11 | FIND_PATH(ACML_INCLUDE_DIR acml.h |
---|
12 | C:\\Program Files\\AMD\\acml3.6.0\\pgi32\\include |
---|
13 | ) |
---|
14 | |
---|
15 | FIND_LIBRARY(ACML_LIBRARY |
---|
16 | NAMES libacml_dll |
---|
17 | PATHS C:\\Program Files\\AMD\\acml3.6.0\\pgi32\\lib |
---|
18 | ) |
---|
19 | |
---|
20 | |
---|
21 | IF (ACML_LIBRARY AND ACML_INCLUDE_DIR) |
---|
22 | SET(ACML_LIBRARIES ${ACML_LIBRARY}) |
---|
23 | SET(ACML_FOUND "YES") |
---|
24 | ELSE (ACML_LIBRARY AND ACML_INCLUDE_DIR) |
---|
25 | SET(ACML_FOUND "NO") |
---|
26 | ENDIF (ACML_LIBRARY AND ACML_INCLUDE_DIR) |
---|
27 | |
---|
28 | |
---|
29 | IF (ACML_FOUND) |
---|
30 | IF (NOT ACML_FIND_QUIETLY) |
---|
31 | MESSAGE(STATUS "Found ACML: ${ACML_LIBRARIES}") |
---|
32 | ENDIF (NOT ACML_FIND_QUIETLY) |
---|
33 | ELSE (ACML_FOUND) |
---|
34 | IF (ACML_FIND_REQUIRED) |
---|
35 | MESSAGE(FATAL_ERROR "Could not find ACML library") |
---|
36 | ENDIF (ACML_FIND_REQUIRED) |
---|
37 | ENDIF (ACML_FOUND) |
---|
38 | |
---|
39 | # Deprecated declarations. |
---|
40 | GET_FILENAME_COMPONENT (NATIVE_ACML_LIB_PATH ${ACML_LIBRARY} PATH) |
---|
41 | |
---|
42 | MARK_AS_ADVANCED( |
---|
43 | ACML_LIBRARY |
---|
44 | ACML_INCLUDE_DIR |
---|
45 | ) |
---|