rename and negate DISABLE_PYTHON --> WITH_PYTHON
[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         ../../../extern/glew/include
47         ${OPENGL_INCLUDE_DIR}
48 )
49
50 SET(SRC
51         intern/wm.c
52         intern/wm_apple.c
53         intern/wm_cursors.c
54         intern/wm_dragdrop.c
55         intern/wm_draw.c
56         intern/wm_event_system.c
57         intern/wm_files.c
58         intern/wm_gesture.c
59         intern/wm_init_exit.c
60         intern/wm_jobs.c
61         intern/wm_keymap.c
62         intern/wm_operators.c
63         intern/wm_subwindow.c
64         intern/wm_window.c
65 )
66
67 ADD_DEFINITIONS(-DGLEW_STATIC)
68
69 IF(WITH_INTERNATIONAL)
70         ADD_DEFINITIONS(-DINTERNATIONAL)
71 ENDIF(WITH_INTERNATIONAL)
72
73 IF(WITH_OPENCOLLADA)
74         ADD_DEFINITIONS(-DWITH_COLLADA)
75 ENDIF(WITH_OPENCOLLADA)
76
77 IF(WITH_QUICKTIME)
78         LIST(APPEND INC ../quicktime ${QUICKTIME_INC})
79         ADD_DEFINITIONS(-DWITH_QUICKTIME)
80 ENDIF(WITH_QUICKTIME)
81
82 IF(WITH_FFMPEG)
83         LIST(APPEND INC ${FFMPEG_INC})
84         ADD_DEFINITIONS(-DWITH_FFMPEG)
85 ENDIF(WITH_FFMPEG)
86
87 IF(WITH_PYTHON)
88         LIST(APPEND INC ../python ${PYTHON_INC})
89         ADD_DEFINITIONS(-DWITH_PYTHON)
90 ENDIF(WITH_PYTHON)
91
92 IF(WITH_GAMEENGINE)
93         ADD_DEFINITIONS(-DWITH_GAMEENGINE)
94 ENDIF(WITH_GAMEENGINE)
95
96 IF(WIN32)
97         LIST(APPEND INC ${PTHREADS_INC})
98 ENDIF(WIN32)
99
100 IF(WITH_COCOA)
101         LIST(REMOVE_ITEM SRC "${CMAKE_CURRENT_SOURCE_DIR}/intern/wm_apple.c")
102 ENDIF(WITH_COCOA)
103
104 IF(WITH_BUILDINFO)
105         ADD_DEFINITIONS(-DNAN_BUILDINFO)
106 ENDIF(WITH_BUILDINFO)
107
108 BLENDERLIB_NOLIST(bf_windowmanager "${SRC}" "${INC}")