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