2011-04-27 11:58:34 +00:00
|
|
|
|
2011-11-08 20:27:37 +00:00
|
|
|
set(INC
|
2011-04-28 13:47:27 +00:00
|
|
|
.
|
|
|
|
../kernel
|
|
|
|
../kernel/svm
|
|
|
|
../kernel/osl
|
|
|
|
../util
|
|
|
|
../render
|
2012-09-20 09:04:43 +00:00
|
|
|
)
|
2012-10-17 04:13:03 +00:00
|
|
|
|
2012-09-20 09:04:43 +00:00
|
|
|
set(INC_SYS
|
2011-04-28 13:47:27 +00:00
|
|
|
${OPENGL_INCLUDE_DIR}
|
2011-11-08 20:27:37 +00:00
|
|
|
${GLEW_INCLUDE_PATH}
|
|
|
|
)
|
2011-04-27 11:58:34 +00:00
|
|
|
|
2011-11-08 20:27:37 +00:00
|
|
|
set(SRC
|
2011-04-27 11:58:34 +00:00
|
|
|
device.cpp
|
|
|
|
device_cpu.cpp
|
|
|
|
device_cuda.cpp
|
|
|
|
device_multi.cpp
|
2011-11-08 20:27:37 +00:00
|
|
|
device_opencl.cpp
|
2012-09-04 13:29:07 +00:00
|
|
|
device_task.cpp
|
2011-11-08 20:27:37 +00:00
|
|
|
)
|
2011-04-27 11:58:34 +00:00
|
|
|
|
2013-01-06 07:10:22 +00:00
|
|
|
if(WITH_NETWORK)
|
2013-02-06 04:16:28 +00:00
|
|
|
list(APPEND SRC
|
|
|
|
device_network.cpp
|
|
|
|
)
|
2013-01-06 07:10:22 +00:00
|
|
|
endif()
|
|
|
|
|
2011-11-08 20:27:37 +00:00
|
|
|
set(SRC_HEADERS
|
2011-04-27 11:58:34 +00:00
|
|
|
device.h
|
2011-11-10 06:05:22 +00:00
|
|
|
device_memory.h
|
2011-04-27 11:58:34 +00:00
|
|
|
device_intern.h
|
2011-11-08 20:27:37 +00:00
|
|
|
device_network.h
|
2012-09-04 13:29:07 +00:00
|
|
|
device_task.h
|
2011-11-08 20:27:37 +00:00
|
|
|
)
|
2011-04-27 11:58:34 +00:00
|
|
|
|
2011-11-08 18:58:29 +00:00
|
|
|
add_definitions(-DGLEW_STATIC)
|
2011-04-27 11:58:34 +00:00
|
|
|
|
2011-11-08 20:27:37 +00:00
|
|
|
include_directories(${INC})
|
2012-09-20 09:04:43 +00:00
|
|
|
include_directories(SYSTEM ${INC_SYS})
|
2011-11-08 20:27:37 +00:00
|
|
|
|
|
|
|
add_library(cycles_device ${SRC} ${SRC_HEADERS})
|