svn merge -r39781:39792 https://svn.blender.org/svnroot/bf-blender/trunk/blender...
[blender-staging.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         ExtraHandler.cpp
55         ExtraTags.cpp
56         GeometryExporter.cpp
57         ImageExporter.cpp
58         InstanceWriter.cpp
59         LightExporter.cpp
60         MaterialExporter.cpp
61         MeshImporter.cpp
62         SkinInfo.cpp
63         TransformReader.cpp
64         TransformWriter.cpp
65         collada.cpp
66         collada_internal.cpp
67         collada_utils.cpp
68
69         AnimationImporter.h
70         AnimationExporter.h     
71         ArmatureExporter.h
72         ArmatureImporter.h
73         CameraExporter.h
74         DocumentExporter.h
75         DocumentImporter.h
76         EffectExporter.h
77         ExtraHandler.h
78         ExtraTags.h
79         GeometryExporter.h
80         ImageExporter.h
81         InstanceWriter.h
82         LightExporter.h
83         MaterialExporter.h
84         MeshImporter.h
85         SkinInfo.h
86         TransformReader.h
87         TransformWriter.h
88         collada.h
89         collada_internal.h
90         collada_utils.h
91 )
92
93 if(WITH_BUILDINFO)
94         add_definitions(-DWITH_BUILDINFO)
95 endif()
96
97 if(CMAKE_COMPILER_IS_GNUCXX)
98         # COLLADAFWArray.h gives error with gcc 4.5
99         set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fpermissive")
100 endif()
101
102 blender_add_lib(bf_collada "${SRC}" "${INC}" "${INC_SYS}")