Pose brush: Smooth Iterations Brush Property
[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   ../depsgraph
29   ../draw
30   ../gpu
31   ../imbuf
32   ../makesdna
33   ../makesrna
34   ../nodes
35   ../physics
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 set(LIB
73 )
74
75 if(WITH_PYTHON)
76   add_definitions(-DWITH_PYTHON)
77   list(APPEND INC
78     ../python
79   )
80 endif()
81
82 if(WITH_IMAGE_OPENEXR)
83   list(APPEND LIB
84     bf_imbuf_openexr
85   )
86   add_definitions(-DWITH_OPENEXR)
87 endif()
88
89 if(WITH_MOD_SMOKE)
90   add_definitions(-DWITH_SMOKE)
91 endif()
92
93 if(WITH_FREESTYLE)
94   list(APPEND INC
95     ../freestyle
96   )
97   list(APPEND LIB
98     bf_freestyle
99   )
100   add_definitions(-DWITH_FREESTYLE)
101 endif()
102
103 if(WITH_INTERNATIONAL)
104   add_definitions(-DWITH_INTERNATIONAL)
105 endif()
106
107 if(APPLE)
108   # SSE math is enabled by default on x86_64
109   if(CMAKE_OSX_ARCHITECTURES MATCHES "i386")
110     set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -mfpmath=sse")
111     set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -mfpmath=sse")
112   endif()
113 endif()
114
115 blender_add_lib_nolist(bf_render "${SRC}" "${INC}" "${INC_SYS}" "${LIB}")