6ce4954f05365b166d9b4484e1b1fb932522a58c
[blender.git] / source / blender / quicktime / CMakeLists.txt
1 # $Id$
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         ../quicktime
30         ../makesdna
31         ../makesrna
32         ../blenlib
33         ../blenkernel
34         ../avi
35         ../imbuf
36         ../imbuf/intern
37         ../blenloader
38         ../render/extern/include
39         ../include
40         ../windowmanager
41         ../../../intern/guardedalloc
42 )
43
44 set(INC_SYS
45         ${QUICKTIME_INCLUDE_DIRS}
46 )
47
48 if(USE_QTKIT)
49         set(SRC
50                 apple/qtkit_import.m
51                 apple/qtkit_export.m
52
53                 quicktime_export.h
54                 quicktime_import.h
55         )
56 else()
57         set(SRC
58                 apple/quicktime_import.c
59                 apple/quicktime_export.c
60
61                 quicktime_export.h
62                 quicktime_import.h
63         )
64 endif()
65
66 add_definitions(-DWITH_QUICKTIME)
67
68 if(WITH_AUDASPACE)
69         list(APPEND INC
70                 ../../../intern/audaspace/intern
71         )
72         add_definitions(-DWITH_AUDASPACE)
73 endif()
74
75 blender_add_lib(bf_quicktime "${SRC}" "${INC}" "${INC_SYS}")