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