e0d53d2c2e46b6078a1b35ccc66192da922c3ee2
[blender.git] / source / blender / collada / CMakeLists.txt
1 # $Id: CMakeLists.txt 21789 2009-07-22 05:35:12Z kazanbas $
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 remove_strict_flags()
28
29 set(INC
30         .
31         ../blenlib
32         ../blenkernel
33         ../windowmanager
34         ../makesdna
35         ../makesrna
36         ../editors/include
37         ../../../intern/guardedalloc
38 )
39
40 if(APPLE)
41         list(APPEND INC
42                 ${OPENCOLLADA_INC}/COLLADAStreamWriter
43                 ${OPENCOLLADA_INC}/COLLADABaseUtils
44                 ${OPENCOLLADA_INC}/COLLADAFramework
45                 ${OPENCOLLADA_INC}/COLLADASaxFrameworkLoader 
46         )
47 else()
48         list(APPEND INC
49                 ${OPENCOLLADA_INC}/COLLADAStreamWriter/include
50                 ${OPENCOLLADA_INC}/COLLADABaseUtils/include
51                 ${OPENCOLLADA_INC}/COLLADAFramework/include
52                 ${OPENCOLLADA_INC}/COLLADASaxFrameworkLoader/include 
53         )
54 endif()
55
56 set(SRC
57         AnimationImporter.cpp
58         ArmatureExporter.cpp
59         ArmatureImporter.cpp
60         CameraExporter.cpp
61         DocumentExporter.cpp
62         DocumentImporter.cpp
63         EffectExporter.cpp
64         GeometryExporter.cpp
65         ImageExporter.cpp
66         InstanceWriter.cpp
67         LightExporter.cpp
68         MaterialExporter.cpp
69         MeshImporter.cpp
70         SkinInfo.cpp
71         TransformReader.cpp
72         TransformWriter.cpp
73         collada.cpp
74         collada_internal.cpp
75         collada_utils.cpp
76
77         AnimationImporter.h
78         ArmatureExporter.h
79         ArmatureImporter.h
80         CameraExporter.h
81         DocumentExporter.h
82         DocumentImporter.h
83         EffectExporter.h
84         GeometryExporter.h
85         ImageExporter.h
86         InstanceWriter.h
87         LightExporter.h
88         MaterialExporter.h
89         MeshImporter.h
90         SkinInfo.h
91         TransformReader.h
92         TransformWriter.h
93         collada.h
94         collada_internal.h
95         collada_utils.h
96 )
97
98 if(WITH_BUILDINFO)
99         add_definitions(-DNAN_BUILDINFO)
100 endif()
101
102 blenderlib(bf_collada "${SRC}" "${INC}")