Code refactor: add generic Cycles node infrastructure.
[blender-staging.git] / intern / cycles / blender / CMakeLists.txt
1
2 set(INC
3         ../graph
4         ../render
5         ../device
6         ../kernel
7         ../kernel/svm
8         ../util
9         ../subd
10         ../../glew-mx
11         ../../guardedalloc
12         ../../mikktspace
13         ../../../source/blender/makesdna
14         ../../../source/blender/makesrna
15         ../../../source/blender/blenlib
16         ${CMAKE_BINARY_DIR}/source/blender/makesrna/intern
17 )
18
19 set(INC_SYS
20         ${PYTHON_INCLUDE_DIRS}
21         ${GLEW_INCLUDE_DIR}
22 )
23
24 set(SRC
25         blender_camera.cpp
26         blender_mesh.cpp
27         blender_object.cpp
28         blender_particles.cpp
29         blender_curves.cpp
30         blender_logging.cpp
31         blender_python.cpp
32         blender_session.cpp
33         blender_shader.cpp
34         blender_sync.cpp
35         blender_texture.cpp
36
37         CCL_api.h
38         blender_sync.h
39         blender_session.h
40         blender_texture.h
41         blender_util.h
42 )
43
44 set(ADDON_FILES
45         addon/__init__.py
46         addon/engine.py 
47         addon/osl.py
48         addon/presets.py
49         addon/properties.py
50         addon/ui.py
51         addon/version_update.py
52 )
53
54 add_definitions(${GL_DEFINITIONS})
55
56 if(WITH_CYCLES_NETWORK)
57         add_definitions(-DWITH_NETWORK)
58 endif()
59
60 blender_add_lib(bf_intern_cycles "${SRC}" "${INC}" "${INC_SYS}")
61
62 # avoid link failure with clang 3.4 debug
63 if(CMAKE_C_COMPILER_ID MATCHES "Clang" AND NOT ${CMAKE_C_COMPILER_VERSION} VERSION_LESS '3.4')
64         set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -gline-tables-only")
65 endif()
66
67 add_dependencies(bf_intern_cycles bf_rna)
68
69 delayed_install(${CMAKE_CURRENT_SOURCE_DIR} "${ADDON_FILES}" ${CYCLES_INSTALL_PATH})
70