2011-06-30 14:47:57 +00:00
|
|
|
|
2011-04-27 11:58:34 +00:00
|
|
|
###########################################################################
|
|
|
|
# GLUT
|
|
|
|
|
2013-08-30 17:34:27 +00:00
|
|
|
if(WITH_CYCLES_STANDALONE AND WITH_CYCLES_STANDALONE_GUI)
|
2011-08-16 16:15:34 +00:00
|
|
|
set(GLUT_ROOT_PATH ${CYCLES_GLUT})
|
2011-04-27 11:58:34 +00:00
|
|
|
|
2011-08-16 16:15:34 +00:00
|
|
|
find_package(GLUT)
|
|
|
|
message(STATUS "GLUT_FOUND=${GLUT_FOUND}")
|
2011-04-27 11:58:34 +00:00
|
|
|
|
2011-08-16 16:15:34 +00:00
|
|
|
include_directories(${GLUT_INCLUDE_DIR})
|
|
|
|
endif()
|
2011-04-27 11:58:34 +00:00
|
|
|
|
2012-06-23 13:42:14 +00:00
|
|
|
if(WITH_SYSTEM_GLEW)
|
2011-08-16 16:15:34 +00:00
|
|
|
set(CYCLES_GLEW_LIBRARY ${GLEW_LIBRARY})
|
2012-06-23 13:42:14 +00:00
|
|
|
else()
|
|
|
|
set(CYCLES_GLEW_LIBRARY extern_glew)
|
2011-08-16 16:15:34 +00:00
|
|
|
endif()
|
2011-05-27 12:13:10 +00:00
|
|
|
|
2011-11-10 12:52:17 +00:00
|
|
|
###########################################################################
|
|
|
|
# CUDA
|
|
|
|
|
|
|
|
if(WITH_CYCLES_CUDA_BINARIES)
|
|
|
|
find_package(CUDA) # Try to auto locate CUDA toolkit
|
|
|
|
if(CUDA_FOUND)
|
|
|
|
message(STATUS "CUDA nvcc = ${CUDA_NVCC_EXECUTABLE}")
|
|
|
|
else()
|
|
|
|
message(STATUS "CUDA compiler not found, disabling WITH_CYCLES_CUDA_BINARIES")
|
|
|
|
set(WITH_CYCLES_CUDA_BINARIES OFF)
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|