Merge branch 'master' into blender2.8
[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 #
20 # The Original Code is: all of this file.
21 #
22 # Contributor(s): Jacques Beaurain.
23 #
24 # ***** END GPL LICENSE BLOCK *****
25
26 set(INC
27         .
28         manipulators
29         manipulators/intern
30         ../blenfont
31         ../blenkernel
32         ../blenlib
33         ../blenloader
34         ../blentranslation
35         ../compositor
36         ../depsgraph
37         ../editors/include
38         ../draw
39         ../gpu
40         ../imbuf
41         ../makesdna
42         ../makesrna
43         ../nodes
44         ../render/extern/include
45         ../../../intern/clog
46         ../../../intern/ghost
47         ../../../intern/guardedalloc
48         ../../../intern/glew-mx
49         ../../../intern/memutil
50 )
51
52 set(INC_SYS
53         ${ZLIB_INCLUDE_DIRS}
54         ${GLEW_INCLUDE_PATH}
55 )
56
57 set(SRC
58         intern/wm.c
59         intern/wm_playanim.c
60         intern/wm_cursors.c
61         intern/wm_dragdrop.c
62         intern/wm_draw.c
63         intern/wm_event_system.c
64         intern/wm_files.c
65         intern/wm_files_link.c
66         intern/wm_gesture.c
67         intern/wm_gesture_ops.c
68         intern/wm_init_exit.c
69         intern/wm_jobs.c
70         intern/wm_keymap.c
71         intern/wm_operator_props.c
72         intern/wm_operators.c
73         intern/wm_subwindow.c
74         intern/wm_window.c
75         intern/wm_stereo.c
76         intern/wm_toolsystem.c
77         intern/wm_tooltip.c
78         manipulators/intern/wm_manipulator.c
79         manipulators/intern/wm_manipulator_group.c
80         manipulators/intern/wm_manipulator_group_type.c
81         manipulators/intern/wm_manipulator_map.c
82         manipulators/intern/wm_manipulator_target_props.c
83         manipulators/intern/wm_manipulator_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_toolsystem.h
91         WM_types.h
92         wm.h
93         wm_cursors.h
94         wm_draw.h
95         wm_event_system.h
96         wm_event_types.h
97         wm_files.h
98         wm_window.h
99         manipulators/WM_manipulator_api.h
100         manipulators/WM_manipulator_types.h
101         manipulators/wm_manipulator_fn.h
102         manipulators/wm_manipulator_wmapi.h
103         manipulators/intern/wm_manipulator_intern.h
104         message_bus/intern/wm_message_bus_intern.h
105         message_bus/wm_message_bus.h
106 )
107
108 if(WITH_AUDASPACE)
109         add_definitions(-DWITH_AUDASPACE)
110
111         list(APPEND INC_SYS
112                 ${AUDASPACE_C_INCLUDE_DIRS}
113         )
114 endif()
115
116 add_definitions(${GL_DEFINITIONS})
117
118 if(WITH_INTERNATIONAL)
119         add_definitions(-DWITH_INTERNATIONAL)
120 endif()
121
122 if(WITH_OPENCOLLADA)
123         add_definitions(-DWITH_COLLADA)
124 endif()
125
126 if(WITH_CODEC_FFMPEG)
127         list(APPEND INC_SYS
128                 ${FFMPEG_INCLUDE_DIRS}
129         )
130         add_definitions(-DWITH_FFMPEG)
131 endif()
132
133 if(WITH_HEADLESS)
134         add_definitions(-DWITH_HEADLESS)
135 elseif(WITH_X11)
136         add_definitions(-DWITH_X11)
137 endif()
138
139 if(WITH_PYTHON)
140         list(APPEND INC
141                 ../python
142         )
143         add_definitions(-DWITH_PYTHON)
144 endif()
145
146 if(WITH_BUILDINFO)
147         add_definitions(-DWITH_BUILDINFO)
148 endif()
149
150 if(WITH_OPENSUBDIV)
151         add_definitions(-DWITH_OPENSUBDIV)
152 endif()
153
154 if(WITH_INPUT_NDOF)
155         add_definitions(-DWITH_INPUT_NDOF)
156 endif()
157
158 if(WIN32)
159         if(WITH_INPUT_IME)
160                 add_definitions(-DWITH_INPUT_IME)
161         endif()
162 endif()
163
164 if(WITH_COMPOSITOR)
165         add_definitions(-DWITH_COMPOSITOR)
166 endif()
167
168 blender_add_lib_nolist(bf_windowmanager "${SRC}" "${INC}" "${INC_SYS}")