Update cmake scripts to use new FindCUDA package.
This commit is contained in:
parent
3adf00b4b9
commit
2d38f4fb2c
@ -48,15 +48,10 @@ ELSE(CG_FOUND)
|
||||
ENDIF(CG_FOUND)
|
||||
|
||||
# CUDA
|
||||
INCLUDE(${NV_CMAKE_DIR}/FindCUDA.cmake)
|
||||
FIND_PACKAGE(CUDA)
|
||||
IF(CUDA_FOUND)
|
||||
SET(HAVE_CUDA ${CUDA_FOUND} CACHE BOOL "Set to TRUE if CUDA is found, FALSE otherwise")
|
||||
MESSAGE(STATUS "Looking for CUDA - found")
|
||||
IF(CUTIL_FOUND)
|
||||
MESSAGE(STATUS "Looking for CUTIL - found")
|
||||
ELSE(CUTIL_FOUND)
|
||||
MESSAGE(STATUS "Looking for CUTIL - not found")
|
||||
ENDIF(CUTIL_FOUND)
|
||||
ELSE(CUDA_FOUND)
|
||||
MESSAGE(STATUS "Looking for CUDA - not found")
|
||||
ENDIF(CUDA_FOUND)
|
||||
|
@ -34,10 +34,10 @@ SET(NVTT_SRCS
|
||||
|
||||
IF (CUDA_FOUND)
|
||||
ADD_DEFINITIONS(-DHAVE_CUDA)
|
||||
WRAP_CUDA(CUDA_SRCS cuda/CompressKernel.cu)
|
||||
CUDA_COMPILE(CUDA_SRCS cuda/CompressKernel.cu)
|
||||
SET(NVTT_SRCS ${NVTT_SRCS} ${CUDA_SRCS})
|
||||
SET(LIBS ${LIBS} ${CUDA_LIBRARIES})
|
||||
INCLUDE_DIRECTORIES(${CUDA_INCLUDE_PATH})
|
||||
INCLUDE_DIRECTORIES(${CUDA_INCLUDE_DIRS})
|
||||
ENDIF (CUDA_FOUND)
|
||||
|
||||
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
|
||||
|
Loading…
Reference in New Issue
Block a user