code cleanup: BKE_ naming, also make bpy.data.images.load() always load a new image...
[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         ../editors/include
33         ../gpu
34         ../imbuf
35         ../makesdna
36         ../makesrna
37         ../nodes
38         ../render/extern/include
39         ../../gameengine/BlenderRoutines
40         ../../../intern/elbeem/extern
41         ../../../intern/ghost
42         ../../../intern/guardedalloc
43         ../../../intern/memutil
44         ../../../intern/opennl/extern
45 )
46
47 set(INC_SYS
48         ${ZLIB_INCLUDE_DIRS}
49         ${OPENGL_INCLUDE_DIR}
50         ${GLEW_INCLUDE_PATH}
51 )
52
53 set(SRC
54         intern/wm.c
55         intern/wm_cursors.c
56         intern/wm_dragdrop.c
57         intern/wm_draw.c
58         intern/wm_event_system.c
59         intern/wm_files.c
60         intern/wm_gesture.c
61         intern/wm_init_exit.c
62         intern/wm_jobs.c
63         intern/wm_keymap.c
64         intern/wm_operators.c
65         intern/wm_subwindow.c
66         intern/wm_window.c
67
68         WM_api.h
69         WM_keymap.h
70         WM_types.h
71         wm.h
72         wm_cursors.h
73         wm_draw.h
74         wm_event_system.h
75         wm_event_types.h
76         wm_files.h
77         wm_subwindow.h
78         wm_window.h
79 )
80
81 add_definitions(-DGLEW_STATIC)
82
83 if(WITH_INTERNATIONAL)
84         add_definitions(-DWITH_INTERNATIONAL)
85 endif()
86
87 if(WITH_OPENCOLLADA)
88         add_definitions(-DWITH_COLLADA)
89 endif()
90
91 if(WITH_CODEC_QUICKTIME)
92         list(APPEND INC
93                 ../quicktime
94         )
95         list(APPEND INC_SYS
96                 ${QUICKTIME_INCLUDE_DIRS}
97         )
98         add_definitions(-DWITH_QUICKTIME)
99 endif()
100
101 if(WITH_CODEC_FFMPEG)
102         list(APPEND INC_SYS
103                 ${FFMPEG_INCLUDE_DIRS}
104         )
105         add_definitions(-DWITH_FFMPEG)
106 endif()
107
108 if(WITH_HEADLESS)
109         add_definitions(-DWITH_HEADLESS)
110 endif()
111
112 if(WITH_PYTHON)
113         list(APPEND INC
114                 ../python
115         )
116         add_definitions(-DWITH_PYTHON)
117
118         if(WITH_PYTHON_SECURITY)
119                 add_definitions(-DWITH_PYTHON_SECURITY)
120         endif()
121 endif()
122
123 if(WITH_GAMEENGINE)
124         add_definitions(-DWITH_GAMEENGINE)
125 endif()
126
127 if(APPLE)
128         if(NOT WITH_COCOA)
129                 list(APPEND SRC
130                         intern/wm_apple.c
131                 )
132         endif()
133 endif()
134
135 if(WITH_BUILDINFO)
136         add_definitions(-DWITH_BUILDINFO)
137 endif()
138
139 if(WIN322)
140         list(APPEND INC
141                 ../../../intern/utfconv
142         )
143 endif()
144
145 blender_add_lib_nolist(bf_windowmanager "${SRC}" "${INC}" "${INC_SYS}")