add BLI_strcpy_rlen, replace strcat, which was used in misleading way.
[blender.git] / intern / cycles / cmake / external_libs.cmake
1
2 ###########################################################################
3 # GLUT
4
5 if(WITH_CYCLES_TEST)
6         set(GLUT_ROOT_PATH ${CYCLES_GLUT})
7
8         find_package(GLUT)
9         message(STATUS "GLUT_FOUND=${GLUT_FOUND}")
10
11         include_directories(${GLUT_INCLUDE_DIR})
12 endif()
13
14 if(WITH_SYSTEM_GLEW)
15         set(CYCLES_GLEW_LIBRARY ${GLEW_LIBRARY})
16 else()
17         set(CYCLES_GLEW_LIBRARY extern_glew)
18 endif()
19
20 ###########################################################################
21 # CUDA
22
23 if(WITH_CYCLES_CUDA_BINARIES)
24         find_package(CUDA) # Try to auto locate CUDA toolkit
25         if(CUDA_FOUND)
26                 message(STATUS "CUDA nvcc = ${CUDA_NVCC_EXECUTABLE}")
27         else()
28                 message(STATUS "CUDA compiler not found, disabling WITH_CYCLES_CUDA_BINARIES")
29                 set(WITH_CYCLES_CUDA_BINARIES OFF)
30         endif()
31 endif()
32