Cleanup: remove contributors for CMake files
[blender.git] / source / blender / collada / CMakeLists.txt
1 # ***** BEGIN GPL LICENSE BLOCK *****
2 #
3 # This program is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU General Public License
5 # as published by the Free Software Foundation; either version 2
6 # of the License, or (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software Foundation,
15 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16 #
17 # The Original Code is Copyright (C) 2006, Blender Foundation
18 # All rights reserved.
19 # ***** END GPL LICENSE BLOCK *****
20
21 remove_strict_flags()
22 FIND_FILE(OPENCOLLADA_ANIMATION_CLIP
23       NAMES
24         COLLADAFWAnimationClip.h
25       PATHS
26         ${OPENCOLLADA_INCLUDE_DIRS}
27       NO_DEFAULT_PATH
28     )
29
30 IF(OPENCOLLADA_ANIMATION_CLIP)
31    message(STATUS "Found opencollada: ${OPENCOLLADA_ANIMATION_CLIP} ")
32    add_definitions(-DWITH_OPENCOLLADA_ANIMATION_CLIP)
33 ELSE()
34    message(STATUS "opencollada: Build without animation clip support")
35 ENDIF()
36
37 set(INC
38         .
39         ../blenkernel
40         ../blenlib
41         ../blentranslation
42         ../depsgraph
43         ../editors/include
44         ../makesdna
45         ../makesrna
46         ../windowmanager
47         ../imbuf
48         ../../../intern/guardedalloc
49         ../ikplugin
50         ../../../intern/iksolver/extern
51         ../bmesh
52 )
53
54 set(INC_SYS
55         ${OPENCOLLADA_INCLUDE_DIRS}
56 )
57
58 set(SRC
59         AnimationClipExporter.cpp
60         AnimationExporter.cpp
61         AnimationImporter.cpp
62         ArmatureExporter.cpp
63         ArmatureImporter.cpp
64         BCAnimationCurve.cpp
65         BCAnimationSampler.cpp
66         BCSampleData.cpp
67         BlenderContext.cpp
68         CameraExporter.cpp
69         ControllerExporter.cpp
70         DocumentExporter.cpp
71         DocumentImporter.cpp
72         EffectExporter.cpp
73         ErrorHandler.cpp
74         ExportSettings.cpp
75         ExtraHandler.cpp
76         ExtraTags.cpp
77         GeometryExporter.cpp
78         ImageExporter.cpp
79         ImportSettings.cpp
80         InstanceWriter.cpp
81         LightExporter.cpp
82         MaterialExporter.cpp
83         Materials.cpp
84         MeshImporter.cpp
85         SceneExporter.cpp
86         SkinInfo.cpp
87         TransformReader.cpp
88         TransformWriter.cpp
89         collada.cpp
90         collada_internal.cpp
91         collada_utils.cpp
92
93         AnimationClipExporter.h
94         AnimationExporter.h
95         AnimationImporter.h
96         ArmatureExporter.h
97         ArmatureImporter.h
98         BCAnimationCurve.h
99         BCAnimationSampler.h
100         BCSampleData.h
101         BlenderContext.h
102         CameraExporter.h
103         ControllerExporter.h
104         DocumentExporter.h
105         DocumentImporter.h
106         EffectExporter.h
107         ErrorHandler.h
108         ExportSettings.h
109         ExtraHandler.h
110         ExtraTags.h
111         GeometryExporter.h
112         ImageExporter.h
113         ImportSettings.h
114         InstanceWriter.h
115         LightExporter.h
116         MaterialExporter.h
117         Materials.h
118         MeshImporter.h
119         SceneExporter.h
120         SkinInfo.h
121         TransformReader.h
122         TransformWriter.h
123         collada.h
124         collada_internal.h
125         collada_utils.h
126 )
127
128 if(WITH_BUILDINFO)
129         add_definitions(-DWITH_BUILDINFO)
130 endif()
131
132 if(WITH_INTERNATIONAL)
133         add_definitions(-DWITH_INTERNATIONAL)
134 endif()
135
136 if(CMAKE_COMPILER_IS_GNUCXX)
137         # COLLADAFWArray.h gives error with gcc 4.5
138         set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fpermissive")
139 endif()
140
141 blender_add_lib(bf_collada "${SRC}" "${INC}" "${INC_SYS}")