svn merge -r39930:39947 https://svn.blender.org/svnroot/bf-blender/trunk/blender
[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         ../blenkernel
32         ../blenlib
33         ../blenloader
34         ../editors/include
35         ../makesdna
36         ../makesrna
37         ../windowmanager
38         ../../../intern/guardedalloc
39 )
40
41 set(INC_SYS
42         ${OPENCOLLADA_INCLUDE_DIRS}
43 )
44
45 set(SRC
46         AnimationImporter.cpp
47         AnimationExporter.cpp
48         ArmatureExporter.cpp
49         ArmatureImporter.cpp
50         CameraExporter.cpp
51         DocumentExporter.cpp
52         DocumentImporter.cpp
53         EffectExporter.cpp
54         ErrorHandler.cpp
55         ExtraHandler.cpp
56         ExtraTags.cpp
57         GeometryExporter.cpp
58         ImageExporter.cpp
59         InstanceWriter.cpp
60         LightExporter.cpp
61         MaterialExporter.cpp
62         MeshImporter.cpp
63         SkinInfo.cpp
64         TransformReader.cpp
65         TransformWriter.cpp
66         collada.cpp
67         collada_internal.cpp
68         collada_utils.cpp
69
70         AnimationImporter.h
71         AnimationExporter.h     
72         ArmatureExporter.h
73         ArmatureImporter.h
74         CameraExporter.h
75         DocumentExporter.h
76         DocumentImporter.h
77         EffectExporter.h
78         ErrorHandler.h
79         ExtraHandler.h
80         ExtraTags.h
81         GeometryExporter.h
82         ImageExporter.h
83         InstanceWriter.h
84         LightExporter.h
85         MaterialExporter.h
86         MeshImporter.h
87         SkinInfo.h
88         TransformReader.h
89         TransformWriter.h
90         collada.h
91         collada_internal.h
92         collada_utils.h
93 )
94
95 if(WITH_BUILDINFO)
96         add_definitions(-DWITH_BUILDINFO)
97 endif()
98
99 if(CMAKE_COMPILER_IS_GNUCXX)
100         # COLLADAFWArray.h gives error with gcc 4.5
101         set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fpermissive")
102 endif()
103
104 blender_add_lib(bf_collada "${SRC}" "${INC}" "${INC_SYS}")