Merging r58475 through r58700 from trunk into soc-2013-depsgraph_mt
[blender.git] / source / blender / quicktime / CMakeLists.txt
1 # ***** BEGIN GPL LICENSE BLOCK *****
2 #
3 # This program is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU General Public License
5 # as published by the Free Software Foundation; either version 2
6 # of the License, or (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software Foundation,
15 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16 #
17 # The Original Code is Copyright (C) 2006, Blender Foundation
18 # All rights reserved.
19 #
20 # The Original Code is: all of this file.
21 #
22 # Contributor(s): Jacques Beaurain.
23 #
24 # ***** END GPL LICENSE BLOCK *****
25
26 set(INC 
27         .
28         ../avi
29         ../blenkernel
30         ../blenlib
31         ../imbuf
32         ../imbuf/intern
33         ../makesdna
34         ../makesrna
35         ../render/extern/include
36         ../windowmanager
37         ../../../intern/guardedalloc
38 )
39
40 set(INC_SYS
41         ${QUICKTIME_INCLUDE_DIRS}
42 )
43
44 if(USE_QTKIT)
45         set(SRC
46                 apple/qtkit_import.m
47                 apple/qtkit_export.m
48
49                 quicktime_export.h
50                 quicktime_import.h
51         )
52 else()
53         set(SRC
54                 apple/quicktime_import.c
55                 apple/quicktime_export.c
56
57                 quicktime_export.h
58                 quicktime_import.h
59         )
60 endif()
61
62 add_definitions(-DWITH_QUICKTIME)
63
64 if(WITH_AUDASPACE)
65         list(APPEND INC
66                 ../../../intern/audaspace/intern
67         )
68         add_definitions(-DWITH_AUDASPACE)
69 endif()
70
71 blender_add_lib(bf_quicktime "${SRC}" "${INC}" "${INC_SYS}")