af8a7cca8dd00ae6451cde60cfc454b7eb5dd6a0
[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/ghost
43         ../../../intern/guardedalloc
44         ../../../intern/glew-mx
45         ../../../intern/memutil
46 )
47
48 set(INC_SYS
49         ${ZLIB_INCLUDE_DIRS}
50         ${GLEW_INCLUDE_PATH}
51 )
52
53 set(SRC
54         intern/wm.c
55         intern/wm_playanim.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_gesture.c
62         intern/wm_init_exit.c
63         intern/wm_jobs.c
64         intern/wm_keymap.c
65         intern/wm_operator_props.c
66         intern/wm_operators.c
67         intern/wm_subwindow.c
68         intern/wm_window.c
69         intern/wm_stereo.c
70
71         WM_api.h
72         WM_keymap.h
73         WM_types.h
74         wm.h
75         wm_cursors.h
76         wm_draw.h
77         wm_event_system.h
78         wm_event_types.h
79         wm_files.h
80         wm_subwindow.h
81         wm_window.h
82 )
83
84 if(WITH_AUDASPACE)
85         add_definitions(${AUDASPACE_DEFINITIONS})
86
87         list(APPEND INC_SYS
88                 ${AUDASPACE_C_INCLUDE_DIRS}
89         )
90 endif()
91
92 add_definitions(${GL_DEFINITIONS})
93
94 if(WITH_INTERNATIONAL)
95         add_definitions(-DWITH_INTERNATIONAL)
96 endif()
97
98 if(WITH_OPENCOLLADA)
99         add_definitions(-DWITH_COLLADA)
100 endif()
101
102 if(WITH_CODEC_QUICKTIME)
103         list(APPEND INC
104                 ../quicktime
105         )
106         list(APPEND INC_SYS
107                 ${QUICKTIME_INCLUDE_DIRS}
108         )
109         add_definitions(-DWITH_QUICKTIME)
110 endif()
111
112 if(WITH_CODEC_FFMPEG)
113         list(APPEND INC_SYS
114                 ${FFMPEG_INCLUDE_DIRS}
115         )
116         add_definitions(-DWITH_FFMPEG)
117 endif()
118
119 if(WITH_HEADLESS)
120         add_definitions(-DWITH_HEADLESS)
121 elseif(WITH_X11)
122         add_definitions(-DWITH_X11)
123 endif()
124
125 if(WITH_PYTHON)
126         list(APPEND INC
127                 ../python
128         )
129         add_definitions(-DWITH_PYTHON)
130
131         if(WITH_PYTHON_SECURITY)
132                 add_definitions(-DWITH_PYTHON_SECURITY)
133         endif()
134 endif()
135
136 if(WITH_GAMEENGINE)
137         add_definitions(-DWITH_GAMEENGINE)
138 endif()
139
140 if(WITH_BUILDINFO)
141         add_definitions(-DWITH_BUILDINFO)
142 endif()
143
144 if(WITH_OPENSUBDIV)
145         add_definitions(-DWITH_OPENSUBDIV)
146 endif()
147
148 if(WIN32)
149         if(WITH_INPUT_IME)
150                 add_definitions(-DWITH_INPUT_IME)
151         endif()
152 endif()
153
154 if(WITH_COMPOSITOR)
155         add_definitions(-DWITH_COMPOSITOR)
156 endif()
157
158 blender_add_lib_nolist(bf_windowmanager "${SRC}" "${INC}" "${INC_SYS}")