2 MESSAGE(STATUS "========================================")
3 MESSAGE(STATUS "processing OSGContribComputeBase support")
4 MESSAGE(STATUS "========================================")
7 GET_FILENAME_COMPONENT(_CMAKE_CURRENT_LIST_DIR ${CMAKE_CURRENT_LIST_FILE} PATH)
9 #MESSAGE(STATUS "Prep osgcuda ${_CMAKE_CURRENT_LIST_DIR} ${CMAKE_CURRENT_LIST_FILE}")
11 SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${_CMAKE_CURRENT_LIST_DIR}/CMake")
13 IF(OSGNVidiaSDKSrcDir AND NOT OPENCL_INCLUDE_DIR)
14 IF(EXISTS ${OSGNVidiaSDKSrcDir}/OpenCL/common/inc/CL/cl.h)
15 SET(OPENCL_INCLUDE_DIR ${OSGNVidiaSDKSrcDir}/OpenCL/common/inc)
19 FIND_PACKAGE(CUDA QUIET)
20 FIND_PACKAGE(OpenCL QUIET)
25 OSG_SETUP_CUDA_FLAGS()
27 SET(CUDA_VERBOSE_BUILD ON)
28 SET(CUDA_BUILD_EMULATION OFF)
30 SET(OSG_SUPP_CC_BBASE Contrib)
33 MESSAGE(STATUS "Using cuda version ${CUDA_VERSION}")
35 ADD_SUBDIRECTORY("${_CMAKE_CURRENT_LIST_DIR}/Support/NVSdkCommon" ${OSG_SUPP_CC_BBASE}/NVSdkCommon)
36 ADD_SUBDIRECTORY("${_CMAKE_CURRENT_LIST_DIR}/Support/CudaCommon" ${OSG_SUPP_CC_BBASE}/CudaCommon)
37 # ADD_SUBDIRECTORY("${_CMAKE_CURRENT_LIST_DIR}/Support/CudaUtil" ${OSG_SUPP_CC_BBASE}/CudaUtil)