8d85551d49378d9ba350031719b1201a51df71d0
[blender-staging.git] / extern / 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 #
20 # The Original Code is: all of this file.
21 #
22 # Contributor(s): Jacques Beaurain.
23 #
24 # ***** END GPL LICENSE BLOCK *****
25
26 # Otherwise we get warnings here that we cant fix in external projects
27 remove_strict_flags()
28
29 add_subdirectory(colamd)
30 add_subdirectory(rangetree)
31 add_subdirectory(wcwidth)
32 add_subdirectory(libmv)
33
34 if(WITH_BULLET)
35         if(NOT WITH_SYSTEM_BULLET)
36                 add_subdirectory(bullet2)
37         endif()
38 endif()
39
40 # now only available in a branch
41 #if(WITH_MOD_CLOTH_ELTOPO)
42 #       add_subdirectory(eltopo)
43 #endif()
44
45 if(WITH_BINRELOC)
46         add_subdirectory(binreloc)
47 endif()
48
49 if(NOT WITH_SYSTEM_GLEW)
50         add_subdirectory(glew)
51 endif()
52
53 if(WITH_GAMEENGINE)
54         add_subdirectory(recastnavigation)
55 endif()
56
57 if(WITH_IMAGE_OPENJPEG AND (NOT WITH_SYSTEM_OPENJPEG))
58         add_subdirectory(libopenjpeg)
59 endif()
60
61 if(WITH_IMAGE_REDCODE)
62         add_subdirectory(libredcode)
63 endif()
64
65 if(WITH_LZO)
66         add_subdirectory(lzo)
67 endif()
68
69 if(WITH_LZMA)
70         add_subdirectory(lzma)
71 endif()
72
73 if(WITH_CYCLES OR WITH_COMPOSITOR)
74         add_subdirectory(clew)
75         add_subdirectory(cuew)
76 endif()
77
78 if(WITH_MOD_BOOLEAN)
79         add_subdirectory(carve)
80 endif()
81
82 if(WITH_GHOST_XDND)
83         if(UNIX AND NOT APPLE)
84                 add_subdirectory(xdnd)
85         endif()
86 endif()
87
88 if(WITH_GTESTS)
89         add_subdirectory(gtest)
90 endif()