fixed: auto_ptr -> unique_ptr
[opensg.git] / CMake / OSGCommonConfig.cmake
blob855cbbdc3a6c6ddc6cf9b39025f6d131d4cf60c7
2 SET(OSGPREFIX "OSG")
4 MACRO(OSG_COMMON_CUDA)
6   IF(OSG_ENABLE_CUDA)
7     IF(CUDA_FOUND)
8       SET(OSG_WITH_CUDA 1)
9       ADD_CUSTOM_TARGET(OSGAllCudaLibs)
10       ADD_DEPENDENCIES(OSGAllLibs OSGAllCudaLibs)
11     ENDIF(CUDA_FOUND)
12   ELSE(OSG_ENABLE_CUDA)
13     SET(OSG_WITH_CUDA 0)
14   ENDIF(OSG_ENABLE_CUDA)
16   IF(OPENCL_FOUND)
17     SET(OSG_WITH_OPENCL)
18   ENDIF(OPENCL_FOUND)
20 ENDMACRO()
22 MACRO(OSG_COMMON_TARGETS)
24   ADD_CUSTOM_TARGET(OSGAll)
26   ADD_CUSTOM_TARGET(OSGAllApps)
27   ADD_DEPENDENCIES(OSGAll OSGAllApps)
29   # optional pass for test programs
30   IF(OSGBUILD_TESTS)
31     ADD_CUSTOM_TARGET(OSGAllTests)
32     ADD_DEPENDENCIES(OSGAll OSGAllTests)
33   ENDIF(OSGBUILD_TESTS)
35   ADD_CUSTOM_TARGET(OSGAllLibs)
36   ADD_CUSTOM_TARGET(OSGAllContribLibs)
38   ADD_DEPENDENCIES(OSGAll OSGAllLibs)
39   ADD_DEPENDENCIES(OSGAllLibs OSGAllContribLibs)
41 ENDMACRO()