use explicit file paths for CMake rather then globing, This is recommended by cmake...
[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         ../include
37         ../imbuf
38         ../blenloader
39         ../editors/include
40         ../render/extern/include
41         ../../kernel/gen_system
42         ../../../intern/guardedalloc
43         ../../../intern/memutil
44         ../../../intern/elbeem/extern
45         ../../../intern/ghost
46         ../../../intern/opennl/extern
47         ../../../extern/glew/include
48         ${OPENGL_INCLUDE_DIR}
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
68 ADD_DEFINITIONS(-DGLEW_STATIC)
69
70 IF(WITH_INTERNATIONAL)
71         ADD_DEFINITIONS(-DINTERNATIONAL)
72 ENDIF(WITH_INTERNATIONAL)
73
74 IF(WITH_OPENCOLLADA)
75         ADD_DEFINITIONS(-DWITH_COLLADA)
76 ENDIF(WITH_OPENCOLLADA)
77
78 IF(WITH_QUICKTIME)
79         LIST(APPEND INC ../quicktime ${QUICKTIME_INC})
80         ADD_DEFINITIONS(-DWITH_QUICKTIME)
81 ENDIF(WITH_QUICKTIME)
82
83 IF(WITH_FFMPEG)
84         LIST(APPEND INC ${FFMPEG_INC})
85         ADD_DEFINITIONS(-DWITH_FFMPEG)
86 ENDIF(WITH_FFMPEG)
87
88 IF(WITH_PYTHON)
89         LIST(APPEND INC ../python ${PYTHON_INC})
90 ELSE(WITH_PYTHON)
91         ADD_DEFINITIONS(-DDISABLE_PYTHON)
92 ENDIF(WITH_PYTHON)
93
94 IF(WIN32)
95         LIST(APPEND INC ${PTHREADS_INC})
96 ENDIF(WIN32)
97
98 IF(WITH_COCOA)
99         LIST(REMOVE_ITEM SRC "${CMAKE_CURRENT_SOURCE_DIR}/intern/wm_apple.c")
100 ENDIF(WITH_COCOA)
101
102 IF(WITH_BUILDINFO)
103         ADD_DEFINITIONS(-DNAN_BUILDINFO)
104 ENDIF(WITH_BUILDINFO)
105
106 BLENDERLIB_NOLIST(bf_windowmanager "${SRC}" "${INC}")