Permalink
Browse files

fixed: init contribcompute dependencies

git-svn-id: https://opensg.vrsource.org/svn/trunk@2266 4683daeb-ad0f-0410-a623-93161e962ae5
  • Loading branch information...
1 parent 20056aa commit cdb44b7b8936f24c85cb4a5b37c4e8aa3c97d16d vossg committed Jan 10, 2010
Showing with 20 additions and 0 deletions.
  1. +20 −0 CMake/ExternalProjectHelper.cmake
@@ -47,6 +47,7 @@ MACRO(OSG_INIT)
LIST(FIND _OSG_COMPONENTS OSGFileIO _OSG_USE_FILEIO)
LIST(FIND _OSG_COMPONENTS OSGImageFileIO _OSG_USE_IMAGEFILEIO)
+ LIST(FIND _OSG_COMPONENTS OSGContribComputeBase _OSG_USE_CONTRIBCOMPUTE)
ENDIF(OpenSG_DIR)
@@ -135,6 +136,25 @@ MACRO(OSG_INIT)
ENDIF(COLLADA_FOUND)
ENDIF(_OSG_USE_FILEIO)
+ IF(_OSG_USE_CONTRIBCOMPUTE)
+ FIND_PACKAGE(CUDA QUIET REQUIRED)
+
+ INCLUDE(ConfigurePackages.OSGContribComputeBase)
+
+ IF(NOT OSG_BUILD_DEPENDEND)
+ OSG_CONFIGURE_NVSDKCOMMON()
+ OSG_CONFIGURE_NVOCLUTILS()
+ OSG_CONFIGURE_CUDACOMMON()
+ OSG_CONFIGURE_CUDAUTIL()
+ OSG_CONFIGURE_CUDPP()
+ OSG_CONFIGURE_CUDAPARTSDK()
+ ENDIF(NOT OSG_BUILD_DEPENDEND)
+
+ MESSAGE(STATUS "NV Status: NV:${OSG_NVSDKCOMMON_FOUND}")
+ MESSAGE(STATUS "Cuda Status: CC:${OSG_CUDACOMMON_FOUND} CU:${OSG_CUDAUTIL_FOUND} CP:${OSG_CUDPP_FOUND}")
+ MESSAGE(STATUS "OCL Status : NV:${OSG_NVOCLUTILS_FOUND}")
+ ENDIF(_OSG_USE_CONTRIBCOMPUTE)
+
CHECK_BUILD_DIR()
SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)

0 comments on commit cdb44b7

Please sign in to comment.