830e22f70d7ef304901a41f4571b49e0de9626e0
[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         ../blenloader
34         ../windowmanager
35         ../makesdna
36         ../makesrna
37         ../editors/include
38         ../../../intern/guardedalloc
39 )
40
41 if(APPLE)
42         list(APPEND INC
43                 ${OPENCOLLADA_INC}/COLLADAStreamWriter
44                 ${OPENCOLLADA_INC}/COLLADABaseUtils
45                 ${OPENCOLLADA_INC}/COLLADAFramework
46                 ${OPENCOLLADA_INC}/COLLADASaxFrameworkLoader 
47         )
48 else()
49         list(APPEND INC
50                 ${OPENCOLLADA_INC}/COLLADAStreamWriter/include
51                 ${OPENCOLLADA_INC}/COLLADABaseUtils/include
52                 ${OPENCOLLADA_INC}/COLLADAFramework/include
53                 ${OPENCOLLADA_INC}/COLLADASaxFrameworkLoader/include 
54                 ${OPENCOLLADA_INC}/GeneratedSaxParser/include 
55         )
56 endif()
57
58 set(SRC
59         AnimationImporter.cpp
60         ArmatureExporter.cpp
61         ArmatureImporter.cpp
62         CameraExporter.cpp
63         DocumentExporter.cpp
64         DocumentImporter.cpp
65         EffectExporter.cpp
66         ExtraHandler.cpp
67         GeometryExporter.cpp
68         ImageExporter.cpp
69         InstanceWriter.cpp
70         LightExporter.cpp
71         MaterialExporter.cpp
72         MeshImporter.cpp
73         SkinInfo.cpp
74         TransformReader.cpp
75         TransformWriter.cpp
76         collada.cpp
77         collada_internal.cpp
78         collada_utils.cpp
79
80         AnimationImporter.h
81         ArmatureExporter.h
82         ArmatureImporter.h
83         CameraExporter.h
84         DocumentExporter.h
85         DocumentImporter.h
86         EffectExporter.h
87         ExtraHandler.h
88         GeometryExporter.h
89         ImageExporter.h
90         InstanceWriter.h
91         LightExporter.h
92         MaterialExporter.h
93         MeshImporter.h
94         SkinInfo.h
95         TransformReader.h
96         TransformWriter.h
97         collada.h
98         collada_internal.h
99         collada_utils.h
100 )
101
102 if(WITH_BUILDINFO)
103         add_definitions(-DNAN_BUILDINFO)
104 endif()
105
106 if(CMAKE_COMPILER_IS_GNUCXX)
107         # COLLADAFWArray.h gives error with gcc 4.5
108         set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fpermissive")
109 endif()
110
111 blender_add_lib(bf_collada "${SRC}" "${INC}")