fixed: auto_ptr -> unique_ptr
[opensg.git] / Source / Contrib / ComputeBase / CMakeLists.Support.OSGContribComputeBase.txt
blob6afb91d064e3cb47e76ed82c94a1511d67a1f435
2 MESSAGE(STATUS "========================================")
3 MESSAGE(STATUS "processing OSGContribComputeBase support")
4 MESSAGE(STATUS "========================================")
5 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)
16   ENDIF()
17 ENDIF()
19 FIND_PACKAGE(CUDA QUIET)
20 FIND_PACKAGE(OpenCL QUIET)
21 FIND_PACKAGE(OpenMP)
23 INCLUDE(CudaHelper)
25 OSG_SETUP_CUDA_FLAGS()
27 SET(CUDA_VERBOSE_BUILD ON)
28 SET(CUDA_BUILD_EMULATION OFF)
30 SET(OSG_SUPP_CC_BBASE Contrib)
32 IF(CUDA_FOUND)
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)
39 ENDIF(CUDA_FOUND)