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)
|
ENDIF(CG_FOUND)
|
||||||
|
|
||||||
# CUDA
|
# CUDA
|
||||||
INCLUDE(${NV_CMAKE_DIR}/FindCUDA.cmake)
|
FIND_PACKAGE(CUDA)
|
||||||
IF(CUDA_FOUND)
|
IF(CUDA_FOUND)
|
||||||
SET(HAVE_CUDA ${CUDA_FOUND} CACHE BOOL "Set to TRUE if CUDA is found, FALSE otherwise")
|
SET(HAVE_CUDA ${CUDA_FOUND} CACHE BOOL "Set to TRUE if CUDA is found, FALSE otherwise")
|
||||||
MESSAGE(STATUS "Looking for CUDA - found")
|
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)
|
ELSE(CUDA_FOUND)
|
||||||
MESSAGE(STATUS "Looking for CUDA - not found")
|
MESSAGE(STATUS "Looking for CUDA - not found")
|
||||||
ENDIF(CUDA_FOUND)
|
ENDIF(CUDA_FOUND)
|
||||||
|
@ -32,13 +32,13 @@ SET(NVTT_SRCS
|
|||||||
cuda/CudaCompressDXT.h
|
cuda/CudaCompressDXT.h
|
||||||
cuda/CudaCompressDXT.cpp)
|
cuda/CudaCompressDXT.cpp)
|
||||||
|
|
||||||
IF(CUDA_FOUND)
|
IF (CUDA_FOUND)
|
||||||
ADD_DEFINITIONS(-DHAVE_CUDA)
|
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(NVTT_SRCS ${NVTT_SRCS} ${CUDA_SRCS})
|
||||||
SET(LIBS ${LIBS} ${CUDA_LIBRARIES})
|
SET(LIBS ${LIBS} ${CUDA_LIBRARIES})
|
||||||
INCLUDE_DIRECTORIES(${CUDA_INCLUDE_PATH})
|
INCLUDE_DIRECTORIES(${CUDA_INCLUDE_DIRS})
|
||||||
ENDIF(CUDA_FOUND)
|
ENDIF (CUDA_FOUND)
|
||||||
|
|
||||||
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
|
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user