Cleanup: remove contributors for CMake files
[blender.git] / source / blender / windowmanager / 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 set(INC
22         .
23         gizmo
24         gizmo/intern
25         ../blenfont
26         ../blenkernel
27         ../blenlib
28         ../blenloader
29         ../blentranslation
30         ../compositor
31         ../depsgraph
32         ../editors/include
33         ../draw
34         ../gpu
35         ../imbuf
36         ../makesdna
37         ../makesrna
38         ../nodes
39         ../render/extern/include
40         ../../../intern/clog
41         ../../../intern/ghost
42         ../../../intern/guardedalloc
43         ../../../intern/glew-mx
44         ../../../intern/memutil
45 )
46
47 set(INC_SYS
48         ${ZLIB_INCLUDE_DIRS}
49         ${GLEW_INCLUDE_PATH}
50 )
51
52 set(SRC
53         intern/wm.c
54         intern/wm_cursors.c
55         intern/wm_dragdrop.c
56         intern/wm_draw.c
57         intern/wm_event_system.c
58         intern/wm_files.c
59         intern/wm_files_link.c
60         intern/wm_gesture.c
61         intern/wm_gesture_ops.c
62         intern/wm_init_exit.c
63         intern/wm_jobs.c
64         intern/wm_keymap.c
65         intern/wm_keymap_utils.c
66         intern/wm_menu_type.c
67         intern/wm_operator_props.c
68         intern/wm_operator_type.c
69         intern/wm_operators.c
70         intern/wm_panel_type.c
71         intern/wm_playanim.c
72         intern/wm_stereo.c
73         intern/wm_subwindow.c
74         intern/wm_toolsystem.c
75         intern/wm_tooltip.c
76         intern/wm_uilist_type.c
77         intern/wm_window.c
78         gizmo/intern/wm_gizmo.c
79         gizmo/intern/wm_gizmo_group.c
80         gizmo/intern/wm_gizmo_group_type.c
81         gizmo/intern/wm_gizmo_map.c
82         gizmo/intern/wm_gizmo_target_props.c
83         gizmo/intern/wm_gizmo_type.c
84         message_bus/intern/wm_message_bus.c
85         message_bus/intern/wm_message_bus_rna.c
86         message_bus/intern/wm_message_bus_static.c
87
88         WM_api.h
89         WM_keymap.h
90         WM_message.h
91         WM_toolsystem.h
92         WM_types.h
93         wm.h
94         wm_cursors.h
95         wm_draw.h
96         wm_event_system.h
97         wm_event_types.h
98         wm_files.h
99         wm_window.h
100         gizmo/WM_gizmo_api.h
101         gizmo/WM_gizmo_types.h
102         gizmo/wm_gizmo_fn.h
103         gizmo/wm_gizmo_wmapi.h
104         gizmo/intern/wm_gizmo_intern.h
105         message_bus/intern/wm_message_bus_intern.h
106         message_bus/wm_message_bus.h
107 )
108
109 if(WITH_AUDASPACE)
110         add_definitions(-DWITH_AUDASPACE)
111
112         list(APPEND INC_SYS
113                 ${AUDASPACE_C_INCLUDE_DIRS}
114         )
115 endif()
116
117 add_definitions(${GL_DEFINITIONS})
118
119 if(WITH_INTERNATIONAL)
120         add_definitions(-DWITH_INTERNATIONAL)
121 endif()
122
123 if(WITH_OPENCOLLADA)
124         add_definitions(-DWITH_COLLADA)
125 endif()
126
127 if(WITH_CODEC_FFMPEG)
128         list(APPEND INC_SYS
129                 ${FFMPEG_INCLUDE_DIRS}
130         )
131         add_definitions(-DWITH_FFMPEG)
132 endif()
133
134 if(WITH_HEADLESS)
135         add_definitions(-DWITH_HEADLESS)
136 elseif(WITH_X11)
137         add_definitions(-DWITH_X11)
138 endif()
139
140 if(WITH_PYTHON)
141         list(APPEND INC
142                 ../python
143         )
144         add_definitions(-DWITH_PYTHON)
145 endif()
146
147 if(WITH_BUILDINFO)
148         add_definitions(-DWITH_BUILDINFO)
149 endif()
150
151 if(WITH_OPENSUBDIV)
152         add_definitions(-DWITH_OPENSUBDIV)
153 endif()
154
155 if(WITH_INPUT_NDOF)
156         add_definitions(-DWITH_INPUT_NDOF)
157 endif()
158
159 if(WIN32)
160         if(WITH_INPUT_IME)
161                 add_definitions(-DWITH_INPUT_IME)
162         endif()
163 endif()
164
165 if(WITH_COMPOSITOR)
166         add_definitions(-DWITH_COMPOSITOR)
167 endif()
168
169 blender_add_lib_nolist(bf_windowmanager "${SRC}" "${INC}" "${INC_SYS}")