Fix COLLADA build warning.
[blender.git] / source / blender / editors / io / 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 # Contributor(s): Blender Foundation
18 #
19 # ***** END GPL LICENSE BLOCK *****
20
21 set(INC
22         ../include
23         ../../blenkernel
24         ../../blenlib
25         ../../blentranslation
26         ../../bmesh
27         ../../depsgraph
28         ../../makesdna
29         ../../makesrna
30         ../../windowmanager
31         ../../collada
32         ../../alembic
33         ../../../../intern/guardedalloc
34 )
35
36 set(INC_SYS
37
38 )
39
40 set(SRC
41         io_alembic.c
42         io_cache.c
43         io_collada.c
44         io_ops.c
45
46         io_alembic.h
47         io_cache.h
48         io_collada.h
49         io_ops.h
50 )
51
52 if(WITH_OPENCOLLADA)
53         add_definitions(-DWITH_COLLADA)
54 endif()
55
56 if(WITH_ALEMBIC)
57         add_definitions(-DWITH_ALEMBIC)
58
59         if(WITH_ALEMBIC_HDF5)
60                 add_definitions(-DWITH_ALEMBIC_HDF5)
61         endif()
62 endif()
63
64 if(WITH_INTERNATIONAL)
65         add_definitions(-DWITH_INTERNATIONAL)
66 endif()
67
68 blender_add_lib(bf_editor_io "${SRC}" "${INC}" "${INC_SYS}")