root/CMake_modules/FindACML.cmake @ 68

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
10FIND_PATH(ACML_INCLUDE_DIR acml.h
11        "${ACML_DIR}\\pgi32\\include"
12 )
13
14FIND_LIBRARY(ACML_LIBRARY
15  NAMES libacml_dll
16  PATHS "${ACML_DIR}\\pgi32\\lib"
17  )
18
19IF (ACML_LIBRARY AND ACML_INCLUDE_DIR)
20    SET(ACML_LIBRARIES ${ACML_LIBRARY})
21    SET(ACML_FOUND "YES")
22ELSE (ACML_LIBRARY AND ACML_INCLUDE_DIR)
23  SET(ACML_FOUND "NO")
24ENDIF (ACML_LIBRARY AND ACML_INCLUDE_DIR)
25
26
27IF (ACML_FOUND)
28   IF (NOT ACML_FIND_QUIETLY)
29      MESSAGE(STATUS "Found ACML: ${ACML_LIBRARIES}")
30   ENDIF (NOT ACML_FIND_QUIETLY)
31ELSE (ACML_FOUND)
32   IF (ACML_FIND_REQUIRED)
33      MESSAGE(FATAL_ERROR "Could not find ACML library")
34   ENDIF (ACML_FIND_REQUIRED)
35ENDIF (ACML_FOUND)
36
37# Deprecated declarations.
38GET_FILENAME_COMPONENT (NATIVE_ACML_LIB_PATH ${ACML_LIBRARY} PATH)
39
40MARK_AS_ADVANCED(
41  ACML_LIBRARY
42  ACML_INCLUDE_DIR
43  )
Note: See TracBrowser for help on using the browser.