rename cmake include/libraries to conform with suggested cmake names
[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         ArmatureExporter.cpp
66         ArmatureImporter.cpp
67         CameraExporter.cpp
68         DocumentExporter.cpp
69         DocumentImporter.cpp
70         EffectExporter.cpp
71         ExtraHandler.cpp
72         ExtraTags.cpp
73         GeometryExporter.cpp
74         ImageExporter.cpp
75         InstanceWriter.cpp
76         LightExporter.cpp
77         MaterialExporter.cpp
78         MeshImporter.cpp
79         SkinInfo.cpp
80         TransformReader.cpp
81         TransformWriter.cpp
82         collada.cpp
83         collada_internal.cpp
84         collada_utils.cpp
85
86         AnimationImporter.h
87         ArmatureExporter.h
88         ArmatureImporter.h
89         CameraExporter.h
90         DocumentExporter.h
91         DocumentImporter.h
92         EffectExporter.h
93         ExtraHandler.h
94         ExtraTags.h
95         GeometryExporter.h
96         ImageExporter.h
97         InstanceWriter.h
98         LightExporter.h
99         MaterialExporter.h
100         MeshImporter.h
101         SkinInfo.h
102         TransformReader.h
103         TransformWriter.h
104         collada.h
105         collada_internal.h
106         collada_utils.h
107 )
108
109 if(WITH_BUILDINFO)
110         add_definitions(-DNAN_BUILDINFO)
111 endif()
112
113 if(CMAKE_COMPILER_IS_GNUCXX)
114         # COLLADAFWArray.h gives error with gcc 4.5
115         set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fpermissive")
116 endif()
117
118 blender_add_lib(bf_collada "${SRC}" "${INC}" "${INC_SYS}")