Cleanup: remove contributors for CMake files
[blender.git] / source / blender / render / CMakeLists.txt
1 # ***** BEGIN GPL LICENSE BLOCK *****
2 #
3 # This program is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU General Public License
5 # as published by the Free Software Foundation; either version 2
6 # of the License, or (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software Foundation,
15 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16 #
17 # The Original Code is Copyright (C) 2006, Blender Foundation
18 # All rights reserved.
19 # ***** END GPL LICENSE BLOCK *****
20
21
22 set(INC
23         extern/include
24         intern/include
25         ../blenkernel
26         ../blenlib
27         ../blentranslation
28         ../imbuf
29         ../depsgraph
30         ../makesdna
31         ../makesrna
32         ../nodes
33         ../physics
34         ../draw
35         ../gpu
36         ../../../intern/atomic
37         ../../../intern/guardedalloc
38         ../../../intern/mikktspace
39         ../../../intern/smoke/extern
40 )
41
42 set(INC_SYS
43         ${GLEW_INCLUDE_PATH}
44 )
45
46 set(SRC
47         intern/source/bake_api.c
48         intern/source/external_engine.c
49         intern/source/imagetexture.c
50         intern/source/initrender.c
51         intern/source/multires_bake.c
52         intern/source/pipeline.c
53         intern/source/pointdensity.c
54         intern/source/render_result.c
55         intern/source/render_texture.c
56         intern/source/zbuf.c
57
58         extern/include/RE_bake.h
59         extern/include/RE_engine.h
60         extern/include/RE_multires_bake.h
61         extern/include/RE_pipeline.h
62         extern/include/RE_render_ext.h
63         extern/include/RE_shader_ext.h
64         intern/include/initrender.h
65         intern/include/render_result.h
66         intern/include/render_types.h
67         intern/include/renderpipeline.h
68         intern/include/texture.h
69         intern/include/zbuf.h
70 )
71
72 if(WITH_PYTHON)
73         add_definitions(-DWITH_PYTHON)
74         list(APPEND INC
75                 ../python
76         )
77 endif()
78
79 if(WITH_IMAGE_OPENEXR)
80         add_definitions(-DWITH_OPENEXR)
81 endif()
82
83 if(WITH_MOD_SMOKE)
84         add_definitions(-DWITH_SMOKE)
85 endif()
86
87 if(WITH_FREESTYLE)
88         list(APPEND INC
89                 ../freestyle
90         )
91         add_definitions(-DWITH_FREESTYLE)
92 endif()
93
94 if(WITH_INTERNATIONAL)
95         add_definitions(-DWITH_INTERNATIONAL)
96 endif()
97
98 if(APPLE)
99         # SSE math is enabled by default on x86_64
100         if(CMAKE_OSX_ARCHITECTURES MATCHES "i386")
101                 set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -mfpmath=sse")
102                 set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -mfpmath=sse")
103         endif()
104 endif()
105
106 blender_add_lib_nolist(bf_render "${SRC}" "${INC}" "${INC_SYS}")