rename cmake include/libraries to conform with suggested cmake names
[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         ../../../intern/guardedalloc
41         ../../../intern/memutil
42         ../../../intern/elbeem/extern
43         ../../../intern/ghost
44         ../../../intern/opennl/extern
45         ../../../source/gameengine/BlenderRoutines
46 )
47
48 set(INC_SYS
49         ${ZLIB_INCLUDE_DIRS}
50         ${OPENGL_INCLUDE_DIR}
51         ${GLEW_INCLUDE_PATH}
52 )
53
54 set(SRC
55         intern/wm.c
56         intern/wm_cursors.c
57         intern/wm_dragdrop.c
58         intern/wm_draw.c
59         intern/wm_event_system.c
60         intern/wm_files.c
61         intern/wm_gesture.c
62         intern/wm_init_exit.c
63         intern/wm_jobs.c
64         intern/wm_keymap.c
65         intern/wm_operators.c
66         intern/wm_subwindow.c
67         intern/wm_window.c
68
69         WM_api.h
70         WM_types.h
71         wm.h
72         wm_cursors.h
73         wm_draw.h
74         wm_event_system.h
75         wm_event_types.h
76         wm_files.h
77         wm_subwindow.h
78         wm_window.h
79 )
80
81 add_definitions(-DGLEW_STATIC)
82
83 if(WITH_INTERNATIONAL)
84         add_definitions(-DINTERNATIONAL)
85 endif()
86
87 if(WITH_OPENCOLLADA)
88         add_definitions(-DWITH_COLLADA)
89 endif()
90
91 if(WITH_CODEC_QUICKTIME)
92         list(APPEND INC ../quicktime)
93         list(APPEND INC_SYS ${QUICKTIME_INCLUDE_DIRS})
94         add_definitions(-DWITH_QUICKTIME)
95 endif()
96
97 if(WITH_CODEC_FFMPEG)
98         list(APPEND INC_SYS ${FFMPEG_INCLUDE_DIRS})
99         add_definitions(-DWITH_FFMPEG)
100 endif()
101
102 if(WITH_PYTHON)
103         list(APPEND INC ../python)
104         add_definitions(-DWITH_PYTHON)
105
106         if(WITH_PYTHON_SECURITY)
107                 add_definitions(-DWITH_PYTHON_SECURITY)
108         endif()
109 endif()
110
111 if(WITH_GAMEENGINE)
112         add_definitions(-DWITH_GAMEENGINE)
113 endif()
114
115 if(APPLE)
116         if(NOT WITH_COCOA)
117                 list(APPEND SRC
118                         intern/wm_apple.c
119                 )
120         endif()
121 endif()
122
123 if(WITH_BUILDINFO)
124         add_definitions(-DNAN_BUILDINFO)
125 endif()
126
127 blender_add_lib_nolist(bf_windowmanager "${SRC}" "${INC}" "${INC_SYS}")