1 # ***** BEGIN GPL LICENSE BLOCK *****
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.
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.
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.
17 # The Original Code is Copyright (C) 2006, Blender Foundation
18 # All rights reserved.
20 # The Original Code is: all of this file.
22 # Contributor(s): Jacques Beaurain.
24 # ***** END GPL LICENSE BLOCK *****
26 # Libs that adhere to strict flags
27 add_subdirectory(curve_fit_nd)
29 # Otherwise we get warnings here that we cant fix in external projects
32 # Not a strict flag, but noisy for code we don't maintain
33 if(CMAKE_COMPILER_IS_GNUCC)
35 "-Wmisleading-indentation"
40 add_subdirectory(rangetree)
41 add_subdirectory(wcwidth)
44 if(NOT WITH_SYSTEM_BULLET)
45 add_subdirectory(bullet2)
49 # now only available in a branch
50 #if(WITH_MOD_CLOTH_ELTOPO)
51 # add_subdirectory(eltopo)
55 add_subdirectory(binreloc)
58 if(NOT WITH_SYSTEM_GLEW)
60 add_subdirectory(glew-es)
62 add_subdirectory(glew)
67 add_subdirectory(recastnavigation)
70 if(WITH_IMAGE_OPENJPEG AND (NOT WITH_SYSTEM_OPENJPEG))
71 add_subdirectory(libopenjpeg)
74 if(WITH_LZO AND NOT WITH_SYSTEM_LZO)
79 add_subdirectory(lzma)
82 if(WITH_CYCLES OR WITH_COMPOSITOR OR WITH_OPENSUBDIV)
83 add_subdirectory(clew)
85 add_subdirectory(cuew)
89 if(WITH_X11 AND WITH_GHOST_XDND)
90 add_subdirectory(xdnd)
94 add_subdirectory(ceres)
97 if(WITH_LIBMV OR WITH_GTESTS OR (WITH_CYCLES AND WITH_CYCLES_LOGGING))
98 if(NOT WITH_SYSTEM_GFLAGS)
99 add_subdirectory(gflags)
101 add_subdirectory(glog)
105 add_subdirectory(gtest)
106 add_subdirectory(gmock)
109 if(WITH_SDL AND WITH_SDL_DYNLOAD)
110 add_subdirectory(sdlew)