Cleanup: manually remove header text not handled by automation
[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 # Libs that adhere to strict flags
27 add_subdirectory(curve_fit_nd)
28
29 # Otherwise we get warnings here that we cant fix in external projects
30 remove_strict_flags()
31
32 # Not a strict flag, but noisy for code we don't maintain
33 if(CMAKE_COMPILER_IS_GNUCC)
34         remove_cc_flag(
35                 "-Wmisleading-indentation"
36         )
37 endif()
38
39
40 add_subdirectory(rangetree)
41 add_subdirectory(wcwidth)
42
43 if(WITH_BULLET)
44         if(NOT WITH_SYSTEM_BULLET)
45                 add_subdirectory(bullet2)
46         endif()
47 endif()
48
49 # now only available in a branch
50 #if(WITH_MOD_CLOTH_ELTOPO)
51 #       add_subdirectory(eltopo)
52 #endif()
53
54 if(WITH_BINRELOC)
55         add_subdirectory(binreloc)
56 endif()
57
58 if(NOT WITH_SYSTEM_GLEW)
59         if(WITH_GLEW_ES)
60                 add_subdirectory(glew-es)
61         else()
62                 add_subdirectory(glew)
63         endif()
64 endif()
65
66 if(WITH_LZO AND NOT WITH_SYSTEM_LZO)
67         add_subdirectory(lzo)
68 endif()
69
70 if(WITH_LZMA)
71         add_subdirectory(lzma)
72 endif()
73
74 if(WITH_CYCLES OR WITH_COMPOSITOR OR WITH_OPENSUBDIV)
75         add_subdirectory(clew)
76         if(WITH_CUDA_DYNLOAD)
77                 add_subdirectory(cuew)
78         endif()
79 endif()
80
81 if(WITH_X11 AND WITH_GHOST_XDND)
82         add_subdirectory(xdnd)
83 endif()
84
85 if(WITH_LIBMV)
86         add_subdirectory(ceres)
87 endif()
88
89 if(WITH_LIBMV OR WITH_GTESTS OR (WITH_CYCLES AND WITH_CYCLES_LOGGING))
90         if(NOT WITH_SYSTEM_GFLAGS)
91                 add_subdirectory(gflags)
92         endif()
93         add_subdirectory(glog)
94 endif()
95
96 if(WITH_GTESTS)
97         add_subdirectory(gtest)
98         add_subdirectory(gmock)
99 endif()
100
101 if(WITH_SDL AND WITH_SDL_DYNLOAD)
102         add_subdirectory(sdlew)
103 endif()
104
105 if(WITH_AUDASPACE AND NOT WITH_SYSTEM_AUDASPACE)
106         set(AUDASPACE_CMAKE_CFG ${CMAKE_CURRENT_SOURCE_DIR}/audaspace/blender_config.cmake)
107         add_subdirectory(audaspace)
108 endif()