Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/device/CMakeLists.txt
| Show First 20 Lines • Show All 52 Lines • ▼ Show 20 Lines | set(SRC_HEADERS | ||||
| device_denoising.h | device_denoising.h | ||||
| device_memory.h | device_memory.h | ||||
| device_intern.h | device_intern.h | ||||
| device_network.h | device_network.h | ||||
| device_split_kernel.h | device_split_kernel.h | ||||
| device_task.h | device_task.h | ||||
| ) | ) | ||||
| set(LIB | |||||
| ) | |||||
| if(WITH_CUDA_DYNLOAD) | |||||
| list(APPEND LIB | |||||
| extern_cuew | |||||
| ) | |||||
| else() | |||||
| list(APPEND LIB | |||||
| ${CUDA_CUDA_LIBRARY} | |||||
| ) | |||||
| endif() | |||||
| add_definitions(${GL_DEFINITIONS}) | add_definitions(${GL_DEFINITIONS}) | ||||
| if(WITH_CYCLES_NETWORK) | if(WITH_CYCLES_NETWORK) | ||||
| add_definitions(-DWITH_NETWORK) | add_definitions(-DWITH_NETWORK) | ||||
| endif() | endif() | ||||
| if(WITH_CYCLES_DEVICE_OPENCL) | if(WITH_CYCLES_DEVICE_OPENCL) | ||||
| add_definitions(-DWITH_OPENCL) | add_definitions(-DWITH_OPENCL) | ||||
| endif() | endif() | ||||
| if(WITH_CYCLES_DEVICE_CUDA) | if(WITH_CYCLES_DEVICE_CUDA) | ||||
| add_definitions(-DWITH_CUDA) | add_definitions(-DWITH_CUDA) | ||||
| endif() | endif() | ||||
| if(WITH_CYCLES_DEVICE_MULTI) | if(WITH_CYCLES_DEVICE_MULTI) | ||||
| add_definitions(-DWITH_MULTI) | add_definitions(-DWITH_MULTI) | ||||
| endif() | endif() | ||||
| include_directories(${INC}) | include_directories(${INC}) | ||||
| include_directories(SYSTEM ${INC_SYS}) | include_directories(SYSTEM ${INC_SYS}) | ||||
| cycles_add_library(cycles_device ${SRC} ${SRC_OPENCL} ${SRC_HEADERS}) | cycles_add_library(cycles_device "${LIB}" ${SRC} ${SRC_OPENCL} ${SRC_HEADERS}) | ||||