msvc: Use source folder structure for project file.
[blender.git] / intern / cycles / render / CMakeLists.txt
1
2 set(INC
3         ..
4         ../../glew-mx
5 )
6
7 set(INC_SYS
8         ${GLEW_INCLUDE_DIR}
9 )
10
11 set(SRC
12         attribute.cpp
13         background.cpp
14         bake.cpp
15         buffers.cpp
16         camera.cpp
17         constant_fold.cpp
18         film.cpp
19         graph.cpp
20         image.cpp
21         integrator.cpp
22         light.cpp
23         mesh.cpp
24         mesh_displace.cpp
25         mesh_subdivision.cpp
26         nodes.cpp
27         object.cpp
28         osl.cpp
29         particles.cpp
30         curves.cpp
31         scene.cpp
32         session.cpp
33         shader.cpp
34         sobol.cpp
35         svm.cpp
36         tables.cpp
37         tile.cpp
38 )
39
40 set(SRC_HEADERS
41         attribute.h
42         bake.h
43         background.h
44         buffers.h
45         camera.h
46         constant_fold.h
47         film.h
48         graph.h
49         image.h
50         integrator.h
51         light.h
52         mesh.h
53         nodes.h
54         object.h
55         osl.h
56         particles.h
57         curves.h
58         scene.h
59         session.h
60         shader.h
61         sobol.h
62         svm.h
63         tables.h
64         tile.h
65 )
66
67 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${RTTI_DISABLE_FLAGS}")
68
69 include_directories(${INC})
70 include_directories(SYSTEM ${INC_SYS})
71
72 add_definitions(${GL_DEFINITIONS})
73
74 cycles_add_library(cycles_render ${SRC} ${SRC_HEADERS})