CMake: unbundle eigen3
[blender.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(rangetree)
30 add_subdirectory(wcwidth)
31 add_subdirectory(libmv)
32
33 if(WITH_OPENNL)
34         add_subdirectory(colamd)
35 endif()
36
37 if(WITH_BULLET)
38         if(NOT WITH_SYSTEM_BULLET)
39                 add_subdirectory(bullet2)
40         endif()
41 endif()
42
43 # now only available in a branch
44 #if(WITH_MOD_CLOTH_ELTOPO)
45 #       add_subdirectory(eltopo)
46 #endif()
47
48 if(WITH_BINRELOC)
49         add_subdirectory(binreloc)
50 endif()
51
52 if(NOT WITH_SYSTEM_GLEW)
53         if(WITH_GLEW_ES)
54                 add_subdirectory(glew-es)
55         else()
56                 add_subdirectory(glew)
57         endif()
58 endif()
59
60 if(WITH_GAMEENGINE)
61         add_subdirectory(recastnavigation)
62 endif()
63
64 if(WITH_IMAGE_OPENJPEG AND (NOT WITH_SYSTEM_OPENJPEG))
65         add_subdirectory(libopenjpeg)
66 endif()
67
68 if(WITH_IMAGE_REDCODE)
69         add_subdirectory(libredcode)
70 endif()
71
72 if(WITH_LZO AND NOT WITH_SYSTEM_LZO)
73         add_subdirectory(lzo)
74 endif()
75
76 if(WITH_LZMA)
77         add_subdirectory(lzma)
78 endif()
79
80 if(WITH_CYCLES OR WITH_COMPOSITOR)
81         add_subdirectory(clew)
82         add_subdirectory(cuew)
83 endif()
84
85 if(WITH_MOD_BOOLEAN)
86         add_subdirectory(carve)
87 endif()
88
89 if(WITH_X11 AND WITH_GHOST_XDND)
90         add_subdirectory(xdnd)
91 endif()
92
93 if(WITH_GTESTS)
94         add_subdirectory(gtest)
95 endif()
96
97 if(WITH_SDL AND WITH_SDL_DYNLOAD)
98         add_subdirectory(sdlew)
99 endif()