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