- added back zlib include (needed for win32).
[blender-staging.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 FILE(GLOB SRC intern/*.c)
28
29 SET(INC
30         .
31         ../nodes
32         ../gpu
33         ../blenfont
34         ../blenlib
35         ../makesdna
36         ../makesrna
37         ../blenkernel
38         ../include
39         ../imbuf
40         ../blenloader
41         ../editors/include
42         ../render/extern/include
43         ../../kernel/gen_system
44         ../../../intern/guardedalloc
45         ../../../intern/memutil
46         ../../../intern/elbeem/extern
47         ../../../intern/ghost
48         ../../../intern/opennl/extern
49         ../../../extern/glew/include
50         ${OPENGL_INCLUDE_DIR}
51 )
52
53 ADD_DEFINITIONS(-DGLEW_STATIC)
54
55 IF(WITH_INTERNATIONAL)
56         ADD_DEFINITIONS(-DINTERNATIONAL)
57 ENDIF(WITH_INTERNATIONAL)
58
59 IF(WITH_OPENCOLLADA)
60         ADD_DEFINITIONS(-DWITH_COLLADA)
61 ENDIF(WITH_OPENCOLLADA)
62
63 IF(WITH_QUICKTIME)
64         LIST(APPEND INC ../quicktime ${QUICKTIME_INC})
65         ADD_DEFINITIONS(-DWITH_QUICKTIME)
66 ENDIF(WITH_QUICKTIME)
67
68 IF(WITH_FFMPEG)
69         LIST(APPEND INC ${FFMPEG_INC})
70         ADD_DEFINITIONS(-DWITH_FFMPEG)
71 ENDIF(WITH_FFMPEG)
72
73 IF(WITH_PYTHON)
74         LIST(APPEND INC ../python ${PYTHON_INC})
75 ELSE(WITH_PYTHON)
76         ADD_DEFINITIONS(-DDISABLE_PYTHON)
77 ENDIF(WITH_PYTHON)
78
79 IF(WIN32)
80         LIST(APPEND INC ${PTHREADS_INC})
81 ENDIF(WIN32)
82
83 IF(WITH_COCOA)
84         LIST(REMOVE_ITEM SRC "${CMAKE_CURRENT_SOURCE_DIR}/intern/wm_apple.c")
85 ENDIF(WITH_COCOA)
86
87 IF(WITH_BUILDINFO)
88         ADD_DEFINITIONS(-DNAN_BUILDINFO)
89 ENDIF(WITH_BUILDINFO)
90
91 BLENDERLIB_NOLIST(bf_windowmanager "${SRC}" "${INC}")