Add option for CMake to build libredcode, also use CODEC prefix for ffmpeg, quicktime...
[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 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         WM_api.h
67         WM_types.h
68         wm.h
69         wm_cursors.h
70         wm_draw.h
71         wm_event_system.h
72         wm_event_types.h
73         wm_files.h
74         wm_subwindow.h
75         wm_window.h
76 )
77
78 ADD_DEFINITIONS(-DGLEW_STATIC)
79
80 IF(WITH_INTERNATIONAL)
81         ADD_DEFINITIONS(-DINTERNATIONAL)
82 ENDIF(WITH_INTERNATIONAL)
83
84 IF(WITH_OPENCOLLADA)
85         ADD_DEFINITIONS(-DWITH_COLLADA)
86 ENDIF(WITH_OPENCOLLADA)
87
88 IF(WITH_CODEC_QUICKTIME)
89         LIST(APPEND INC ../quicktime ${QUICKTIME_INC})
90         ADD_DEFINITIONS(-DWITH_QUICKTIME)
91 ENDIF(WITH_CODEC_QUICKTIME)
92
93 IF(WITH_CODEC_FFMPEG)
94         LIST(APPEND INC ${FFMPEG_INC})
95         ADD_DEFINITIONS(-DWITH_FFMPEG)
96 ENDIF(WITH_CODEC_FFMPEG)
97
98 IF(WITH_PYTHON)
99         LIST(APPEND INC ../python ${PYTHON_INC})
100         ADD_DEFINITIONS(-DWITH_PYTHON)
101 ENDIF(WITH_PYTHON)
102
103 IF(WITH_GAMEENGINE)
104         ADD_DEFINITIONS(-DWITH_GAMEENGINE)
105 ENDIF(WITH_GAMEENGINE)
106
107 IF(WITH_COCOA)
108         LIST(REMOVE_ITEM SRC "${CMAKE_CURRENT_SOURCE_DIR}/intern/wm_apple.c")
109 ENDIF(WITH_COCOA)
110
111 IF(WITH_BUILDINFO)
112         ADD_DEFINITIONS(-DNAN_BUILDINFO)
113 ENDIF(WITH_BUILDINFO)
114
115 BLENDERLIB_NOLIST(bf_windowmanager "${SRC}" "${INC}")