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