add BLI_strcpy_rlen, replace strcat, which was used in misleading way.
[blender.git] / intern / cycles / device / CMakeLists.txt
1
2 set(INC
3         .
4         ../kernel
5         ../kernel/svm
6         ../kernel/osl
7         ../util
8         ../render
9 )
10
11 set(INC_SYS
12         ${OPENGL_INCLUDE_DIR}
13         ${GLEW_INCLUDE_PATH}
14 )
15
16 set(SRC
17         device.cpp
18         device_cpu.cpp
19         device_cuda.cpp
20         device_multi.cpp
21         device_opencl.cpp
22         device_task.cpp
23 )
24
25 if(WITH_NETWORK)
26         list(APPEND SRC
27                 device_network.cpp
28         )
29 endif()
30
31 set(SRC_HEADERS
32         device.h
33         device_memory.h
34         device_intern.h
35         device_network.h
36         device_task.h
37 )
38
39 add_definitions(-DGLEW_STATIC)
40
41 include_directories(${INC})
42 include_directories(SYSTEM ${INC_SYS})
43
44 add_library(cycles_device ${SRC} ${SRC_HEADERS})