- use list append in more places (preferred method since its faster)
[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         ../editors/include
31         ../../../intern/guardedalloc ../../../intern/memutil
32         ../blenlib ../makesdna ../makesrna ../blenkernel
33         ../include ../imbuf ../render/extern/include
34         ../blenloader
35         ../../kernel/gen_system ../readstreamglue
36         ../../../intern/elbeem/extern
37         ../../../intern/ghost ../../../intern/opennl/extern ../../../extern/glew/include
38         ../nodes
39         ../gpu
40         ../blenfont
41         ${OPENGL_INCLUDE_DIR}
42 )
43
44 ADD_DEFINITIONS(-DGLEW_STATIC)
45
46 IF(WITH_INTERNATIONAL)
47         ADD_DEFINITIONS(-DINTERNATIONAL)
48 ENDIF(WITH_INTERNATIONAL)
49
50 IF(WITH_OPENCOLLADA)
51         ADD_DEFINITIONS(-DWITH_COLLADA)
52 ENDIF(WITH_OPENCOLLADA)
53
54 IF(WITH_QUICKTIME)
55         SET(INC ${INC} ../quicktime ${QUICKTIME_INC})
56         ADD_DEFINITIONS(-DWITH_QUICKTIME)
57 ENDIF(WITH_QUICKTIME)
58
59 IF(WITH_FFMPEG)
60         SET(INC ${INC} ${FFMPEG_INC})
61         ADD_DEFINITIONS(-DWITH_FFMPEG)
62 ENDIF(WITH_FFMPEG)
63
64 IF(WITH_PYTHON)
65         SET(INC ${INC} ../python ${PYTHON_INC})
66 ELSE(WITH_PYTHON)
67         ADD_DEFINITIONS(-DDISABLE_PYTHON)
68 ENDIF(WITH_PYTHON)
69
70 IF(WIN32)
71         SET(INC ${INC} ${PTHREADS_INC})
72 ENDIF(WIN32)
73
74 IF(WITH_COCOA)
75         LIST(REMOVE_ITEM SRC "${CMAKE_CURRENT_SOURCE_DIR}/intern/wm_apple.c")
76 ENDIF(WITH_COCOA)
77
78 IF(WITH_BUILDINFO)
79         ADD_DEFINITIONS(-DNAN_BUILDINFO)
80 ENDIF(WITH_BUILDINFO)
81
82 BLENDERLIB_NOLIST(bf_windowmanager "${SRC}" "${INC}")