forked from bartvdbraak/blender
2a0451dc46
The __imp__ prefix on glew lib linking errors should have been a good indication: the code was looking for the glew dll. Bypassed by adding GLEW_STATIC to the definitions.
28 lines
389 B
CMake
28 lines
389 B
CMake
|
|
include_directories(
|
|
.
|
|
../kernel
|
|
../kernel/svm
|
|
../kernel/osl
|
|
../util
|
|
../render
|
|
${OPENGL_INCLUDE_DIR}
|
|
${GLEW_INCLUDE_PATH})
|
|
|
|
set(sources
|
|
device.cpp
|
|
device_cpu.cpp
|
|
device_cuda.cpp
|
|
device_multi.cpp
|
|
device_network.cpp
|
|
device_opencl.cpp)
|
|
|
|
set(headers
|
|
device.h
|
|
device_intern.h
|
|
device_network.h)
|
|
|
|
add_definitions(-DGLEW_STATIC)
|
|
add_library(cycles_device ${sources} ${headers})
|
|
|