Cleanup: move keymap helpers into own file
[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         ../blenfont
29         ../blenkernel
30         ../blenlib
31         ../blenloader
32         ../blentranslation
33         ../compositor
34         ../editors/include
35         ../gpu
36         ../imbuf
37         ../makesdna
38         ../makesrna
39         ../nodes
40         ../render/extern/include
41         ../../gameengine/BlenderRoutines
42         ../../../intern/clog
43         ../../../intern/ghost
44         ../../../intern/guardedalloc
45         ../../../intern/glew-mx
46         ../../../intern/memutil
47 )
48
49 set(INC_SYS
50         ${ZLIB_INCLUDE_DIRS}
51         ${GLEW_INCLUDE_PATH}
52 )
53
54 set(SRC
55         intern/wm.c
56         intern/wm_cursors.c
57         intern/wm_dragdrop.c
58         intern/wm_draw.c
59         intern/wm_event_system.c
60         intern/wm_files.c
61         intern/wm_files_link.c
62         intern/wm_gesture.c
63         intern/wm_gesture_ops.c
64         intern/wm_init_exit.c
65         intern/wm_jobs.c
66         intern/wm_keymap.c
67         intern/wm_keymap_utils.c
68         intern/wm_menu_type.c
69         intern/wm_operator_props.c
70         intern/wm_operator_type.c
71         intern/wm_operators.c
72         intern/wm_playanim.c
73         intern/wm_stereo.c
74         intern/wm_subwindow.c
75         intern/wm_tooltip.c
76         intern/wm_uilist_type.c
77         intern/wm_window.c
78
79         WM_api.h
80         WM_keymap.h
81         WM_types.h
82         wm.h
83         wm_cursors.h
84         wm_draw.h
85         wm_event_system.h
86         wm_event_types.h
87         wm_files.h
88         wm_subwindow.h
89         wm_window.h
90 )
91
92 if(WITH_AUDASPACE)
93         add_definitions(${AUDASPACE_DEFINITIONS})
94
95         list(APPEND INC_SYS
96                 ${AUDASPACE_C_INCLUDE_DIRS}
97         )
98 endif()
99
100 add_definitions(${GL_DEFINITIONS})
101
102 if(WITH_INTERNATIONAL)
103         add_definitions(-DWITH_INTERNATIONAL)
104 endif()
105
106 if(WITH_OPENCOLLADA)
107         add_definitions(-DWITH_COLLADA)
108 endif()
109
110 if(WITH_CODEC_FFMPEG)
111         list(APPEND INC_SYS
112                 ${FFMPEG_INCLUDE_DIRS}
113         )
114         add_definitions(-DWITH_FFMPEG)
115 endif()
116
117 if(WITH_HEADLESS)
118         add_definitions(-DWITH_HEADLESS)
119 elseif(WITH_X11)
120         add_definitions(-DWITH_X11)
121 endif()
122
123 if(WITH_PYTHON)
124         list(APPEND INC
125                 ../python
126         )
127         add_definitions(-DWITH_PYTHON)
128 endif()
129
130 if(WITH_GAMEENGINE)
131         add_definitions(-DWITH_GAMEENGINE)
132 endif()
133
134 if(WITH_BUILDINFO)
135         add_definitions(-DWITH_BUILDINFO)
136 endif()
137
138 if(WITH_OPENSUBDIV)
139         add_definitions(-DWITH_OPENSUBDIV)
140 endif()
141
142 if(WITH_INPUT_NDOF)
143         add_definitions(-DWITH_INPUT_NDOF)
144 endif()
145
146 if(WIN32)
147         if(WITH_INPUT_IME)
148                 add_definitions(-DWITH_INPUT_IME)
149         endif()
150 endif()
151
152 if(WITH_COMPOSITOR)
153         add_definitions(-DWITH_COMPOSITOR)
154 endif()
155
156 blender_add_lib_nolist(bf_windowmanager "${SRC}" "${INC}" "${INC_SYS}")