/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/FindCUDA.cmake

  • Committer: Suren A. Chilingaryan
  • Date: 2010-04-17 07:43:38 UTC
  • Revision ID: csa@dside.dyndns.org-20100417074338-l45lxndn5tv72bpx
Patches for windows port

Show diffs side-by-side

added added

removed removed

Lines of Context:
667
667
FIND_LIBRARY(CUDPP_LIBRARY
668
668
  NAMES ${cuda_cudpp_name} cudpp
669
669
  PATHS 
 
670
     ${CUDPP_ROOT_DIR}
670
671
     ${CUDA_SDK_SEARCH_PATH}
671
 
     ${CUDPP_DIR}
672
672
  PATH_SUFFIXES
673
673
    "lib"
 
674
    "cudpp/lib"
674
675
    "C/common/lib/linux"
 
676
    "C/common/lib"
675
677
)
676
678
 
677
679
IF(CUDPP_LIBRARY)
1088
1090
  # Create custom commands and targets for each file.
1089
1091
  CUDA_WRAP_SRCS( ${cuda_target} OBJ _generated_files ${_sources} OPTIONS ${_options} )
1090
1092
 
1091
 
  # Add the library.
1092
 
  add_library(${cuda_target}
1093
 
    ${_generated_files}
1094
 
    ${_sources}
1095
 
    )
1096
 
 
 
1093
  # Add the library. (SDS add shared and static)
 
1094
  if (WIN32) 
 
1095
     add_library(${cuda_target} STATIC
 
1096
        ${_generated_files}
 
1097
        ${_sources}
 
1098
     )
 
1099
  else (WIN32)
 
1100
     add_library(${cuda_target}
 
1101
        ${_generated_files}
 
1102
        ${_sources}
 
1103
     )
 
1104
  endif (WIN32)
 
1105
  
1097
1106
  target_link_libraries(${cuda_target}
1098
1107
    ${CUDA_LIBRARIES}
1099
1108
    )