Cleanup: replace sizeof division with ARRAY_SIZE macro
[blender.git] / source / blender / editors / util / 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 # ***** END GPL LICENSE BLOCK *****
17
18 set(INC
19   ../include
20   ../space_sequencer
21   ../../blenkernel
22   ../../blenlib
23   ../../blentranslation
24   ../../bmesh
25   ../../depsgraph
26   ../../gpu
27   ../../imbuf
28   ../../makesdna
29   ../../makesrna
30   ../../windowmanager
31   ../../../../intern/clog
32   ../../../../intern/glew-mx
33   ../../../../intern/guardedalloc
34 )
35
36 set(INC_SYS
37   ${GLEW_INCLUDE_PATH}
38 )
39
40 set(SRC
41   ed_transverts.c
42   ed_util.c
43   ed_util_imbuf.c
44   gizmo_utils.c
45   numinput.c
46   select_utils.c
47
48   # general includes
49   ../include/BIF_glutil.h
50   ../include/ED_anim_api.h
51   ../include/ED_armature.h
52   ../include/ED_buttons.h
53   ../include/ED_clip.h
54   ../include/ED_curve.h
55   ../include/ED_datafiles.h
56   ../include/ED_fileselect.h
57   ../include/ED_gizmo_library.h
58   ../include/ED_gizmo_utils.h
59   ../include/ED_gpencil.h
60   ../include/ED_image.h
61   ../include/ED_info.h
62   ../include/ED_keyframes_draw.h
63   ../include/ED_keyframes_edit.h
64   ../include/ED_keyframing.h
65   ../include/ED_lattice.h
66   ../include/ED_markers.h
67   ../include/ED_mask.h
68   ../include/ED_mball.h
69   ../include/ED_mesh.h
70   ../include/ED_node.h
71   ../include/ED_numinput.h
72   ../include/ED_object.h
73   ../include/ED_outliner.h
74   ../include/ED_paint.h
75   ../include/ED_particle.h
76   ../include/ED_physics.h
77   ../include/ED_render.h
78   ../include/ED_scene.h
79   ../include/ED_screen.h
80   ../include/ED_screen_types.h
81   ../include/ED_sculpt.h
82   ../include/ED_select_utils.h
83   ../include/ED_sequencer.h
84   ../include/ED_sound.h
85   ../include/ED_space_api.h
86   ../include/ED_text.h
87   ../include/ED_time_scrub_ui.h
88   ../include/ED_transform.h
89   ../include/ED_transform_snap_object_context.h
90   ../include/ED_transverts.h
91   ../include/ED_types.h
92   ../include/ED_undo.h
93   ../include/ED_userpref.h
94   ../include/ED_util.h
95   ../include/ED_util_imbuf.h
96   ../include/ED_uvedit.h
97   ../include/ED_view3d.h
98   ../include/ED_view3d_offscreen.h
99   ../include/UI_icons.h
100   ../include/UI_interface.h
101   ../include/UI_interface_icons.h
102   ../include/UI_resources.h
103   ../include/UI_view2d.h
104 )
105
106 set(LIB
107 )
108
109 add_definitions(${GL_DEFINITIONS})
110
111 if(WITH_INTERNATIONAL)
112   add_definitions(-DWITH_INTERNATIONAL)
113 endif()
114
115 if(WITH_PYTHON)
116   add_definitions(-DWITH_PYTHON)
117   list(APPEND INC
118     ../../python
119   )
120 endif()
121
122 blender_add_lib(bf_editor_util "${SRC}" "${INC}" "${INC_SYS}" "${LIB}")