rename blenderlib to blender_add_lib
[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         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()
83
84 if(WITH_OPENCOLLADA)
85         add_definitions(-DWITH_COLLADA)
86 endif()
87
88 if(WITH_CODEC_QUICKTIME)
89         list(APPEND INC ../quicktime ${QUICKTIME_INC})
90         add_definitions(-DWITH_QUICKTIME)
91 endif()
92
93 if(WITH_CODEC_FFMPEG)
94         list(APPEND INC ${FFMPEG_INC})
95         add_definitions(-DWITH_FFMPEG)
96 endif()
97
98 if(WITH_PYTHON)
99         list(APPEND INC ../python ${PYTHON_INC})
100         add_definitions(-DWITH_PYTHON)
101 endif()
102
103 if(WITH_GAMEENGINE)
104         add_definitions(-DWITH_GAMEENGINE)
105 endif()
106
107 if(WITH_COCOA)
108         list(REMOVE_ITEM SRC "${CMAKE_CURRENT_SOURCE_DIR}/intern/wm_apple.c")
109 endif()
110
111 if(WITH_BUILDINFO)
112         add_definitions(-DNAN_BUILDINFO)
113 endif()
114
115 blender_add_lib_nolist(bf_windowmanager "${SRC}" "${INC}")