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