/normxcorr/trunk

To get this branch, use:
bzr branch http://suren.me/webbzr/normxcorr/trunk

« back to all changes in this revision

Viewing changes to dict_hw/cmake/FindCUDPP.cmake

  • Committer: Suren A. Chilingaryan
  • Date: 2009-12-12 01:38:41 UTC
  • Revision ID: csa@dside.dyndns.org-20091212013841-feih3qa4i28x75j4
Provide stand-alone library

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
2
# Try to find CUDPP  library  
 
3
# (see http://gpgpu.org/)
 
4
# Once run this will define: 
 
5
 
6
# CUDPP_FOUND
 
7
# CUDPP_INCLUDE_DIR 
 
8
# CUDPP_LIBRARIES
 
9
# CUDPP_LINK_DIRECTORIES
 
10
#
 
11
 
 
12
FIND_PATH(CUDPP_INCLUDE_DIR cudpp.h
 
13
   ${CUDPP_DIR}/cudpp/include
 
14
   ${CUDPP_DIR}/include
 
15
)
 
16
 
 
17
FIND_LIBRARY(CUDPP_LIBRARY
 
18
  NAMES cudpp cudpp64
 
19
  PATHS 
 
20
     ${CUDPP_DIR}/lib
 
21
)
 
22
 
 
23
IF(CUDPP_LIBRARY)
 
24
  IF (CUDPP_INCLUDE_DIR)
 
25
 
 
26
    # OK, found all we need
 
27
    SET(CUDPP_FOUND TRUE)
 
28
    GET_FILENAME_COMPONENT(CUDPP_LINK_DIRECTORIES ${CUDPP_LIBRARY} PATH)
 
29
    
 
30
  ELSE (CUDPP_INCLUDE_DIR)
 
31
    MESSAGE("CUDPP include dir not found. Set CUDPP_DIR to find it.")
 
32
  ENDIF(CUDPP_INCLUDE_DIR)
 
33
ELSE(CUDPP_LIBRARY)
 
34
  MESSAGE("FFTW3 lib not found. Set CUDPP_DIR to find it.")
 
35
ENDIF(CUDPP_LIBRARY)
 
36
 
 
37
 
 
38
MARK_AS_ADVANCED(
 
39
  CUDPP_INCLUDE_DIR
 
40
  CUDPP_LIBRARY
 
41
  CUDPP_LINK_DIRECTORIES
 
42
)