add zlib include dir for cmake too.
[blender.git] / source / blender / windowmanager / CMakeLists.txt
1 # $Id: CMakeLists.txt 12931 2007-12-17 18:20:48Z theeth $
2 # ***** BEGIN GPL LICENSE BLOCK *****
3 #
4 # This program is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU General Public License
6 # as published by the Free Software Foundation; either version 2
7 # of the License, or (at your option) any later version.
8 #
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 # GNU General Public License for more details.
13 #
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software Foundation,
16 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 #
18 # The Original Code is Copyright (C) 2006, Blender Foundation
19 # All rights reserved.
20 #
21 # The Original Code is: all of this file.
22 #
23 # Contributor(s): Jacques Beaurain.
24 #
25 # ***** END GPL LICENSE BLOCK *****
26
27 set(INC
28         .
29         ../nodes
30         ../gpu
31         ../blenfont
32         ../blenlib
33         ../makesdna
34         ../makesrna
35         ../blenkernel
36         ../imbuf
37         ../blenloader
38         ../editors/include
39         ../render/extern/include
40         ../../kernel/gen_system
41         ../../../intern/guardedalloc
42         ../../../intern/memutil
43         ../../../intern/elbeem/extern
44         ../../../intern/ghost
45         ../../../intern/opennl/extern
46         ${ZLIB_INCLUDE_DIRS}
47         ${OPENGL_INCLUDE_DIR}
48         ${GLEW_INCLUDE_PATH}
49 )
50
51 set(SRC
52         intern/wm.c
53         intern/wm_apple.c
54         intern/wm_cursors.c
55         intern/wm_dragdrop.c
56         intern/wm_draw.c
57         intern/wm_event_system.c
58         intern/wm_files.c
59         intern/wm_gesture.c
60         intern/wm_init_exit.c
61         intern/wm_jobs.c
62         intern/wm_keymap.c
63         intern/wm_operators.c
64         intern/wm_subwindow.c
65         intern/wm_window.c
66
67         WM_api.h
68         WM_types.h
69         wm.h
70         wm_cursors.h
71         wm_draw.h
72         wm_event_system.h
73         wm_event_types.h
74         wm_files.h
75         wm_subwindow.h
76         wm_window.h
77 )
78
79 add_definitions(-DGLEW_STATIC)
80
81 if(WITH_INTERNATIONAL)
82         add_definitions(-DINTERNATIONAL)
83 endif()
84
85 if(WITH_OPENCOLLADA)
86         add_definitions(-DWITH_COLLADA)
87 endif()
88
89 if(WITH_CODEC_QUICKTIME)
90         list(APPEND INC ../quicktime ${QUICKTIME_INC})
91         add_definitions(-DWITH_QUICKTIME)
92 endif()
93
94 if(WITH_CODEC_FFMPEG)
95         list(APPEND INC ${FFMPEG_INC})
96         add_definitions(-DWITH_FFMPEG)
97 endif()
98
99 if(WITH_PYTHON)
100         list(APPEND INC ../python ${PYTHON_INCLUDE_DIRS})
101         add_definitions(-DWITH_PYTHON)
102
103         if(WITH_PYTHON_SECURITY)
104                 add_definitions(-DWITH_PYTHON_SECURITY)
105         endif()
106 endif()
107
108 if(WITH_GAMEENGINE)
109         add_definitions(-DWITH_GAMEENGINE)
110 endif()
111
112 if(WITH_COCOA)
113         list(REMOVE_ITEM SRC "${CMAKE_CURRENT_SOURCE_DIR}/intern/wm_apple.c")
114 endif()
115
116 if(WITH_BUILDINFO)
117         add_definitions(-DNAN_BUILDINFO)
118 endif()
119
120 blender_add_lib_nolist(bf_windowmanager "${SRC}" "${INC}")