Merged trunk up to rev41928
[blender-staging.git] / intern / cycles / blender / CMakeLists.txt
1
2 set(INC
3         ../render
4         ../device
5         ../kernel
6         ../kernel/svm
7         ../util
8         ../subd
9 )
10
11 set(INC_SYS
12         ${BLENDER_INCLUDE_DIRS}
13         ${PYTHON_INCLUDE_DIRS}
14         ${GLEW_INCLUDE_PATH}
15 )
16
17
18 set(SRC
19         blender_camera.cpp
20         blender_mesh.cpp
21         blender_object.cpp
22         blender_python.cpp
23         blender_session.cpp
24         blender_shader.cpp
25         blender_sync.cpp
26
27         blender_sync.h
28         blender_session.h
29         blender_util.h
30 )
31
32 set(ADDON_FILES
33         addon/__init__.py
34         addon/engine.py 
35         addon/enums.py
36         addon/presets.py
37         addon/properties.py
38         addon/ui.py
39         addon/xml.py
40 )
41
42 blender_add_lib(bf_intern_cycles "${SRC}" "${INC}" "${INC_SYS}")
43
44 add_dependencies(bf_intern_cycles bf_rna)
45
46 delayed_install(${CMAKE_CURRENT_SOURCE_DIR} "${ADDON_FILES}" ${CYCLES_INSTALL_PATH})
47