Cleanup: Use const context for some UI templates
[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 # ***** END GPL LICENSE BLOCK *****
20
21 # Libs that adhere to strict flags
22 add_subdirectory(curve_fit_nd)
23
24 # Otherwise we get warnings here that we cant fix in external projects
25 remove_strict_flags()
26
27 # Not a strict flag, but noisy for code we don't maintain
28 if(CMAKE_COMPILER_IS_GNUCC)
29   remove_cc_flag(
30     "-Wmisleading-indentation"
31   )
32 endif()
33
34
35 add_subdirectory(rangetree)
36 add_subdirectory(wcwidth)
37
38 if(WITH_BULLET)
39   if(NOT WITH_SYSTEM_BULLET)
40     add_subdirectory(bullet2)
41   endif()
42 endif()
43
44 if(WITH_DRACO)
45   add_subdirectory(draco)
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_LZO AND NOT WITH_SYSTEM_LZO)
61   add_subdirectory(lzo)
62 endif()
63
64 if(WITH_LZMA)
65   add_subdirectory(lzma)
66 endif()
67
68 if(WITH_CYCLES OR WITH_COMPOSITOR OR WITH_OPENSUBDIV)
69   add_subdirectory(clew)
70   if(WITH_CUDA_DYNLOAD)
71     add_subdirectory(cuew)
72   endif()
73 endif()
74
75 if(WITH_GHOST_X11 AND WITH_GHOST_XDND)
76   add_subdirectory(xdnd)
77 endif()
78
79 if(WITH_LIBMV)
80   add_subdirectory(ceres)
81 endif()
82
83 if(WITH_LIBMV OR WITH_GTESTS OR (WITH_CYCLES AND WITH_CYCLES_LOGGING))
84   if(NOT WITH_SYSTEM_GFLAGS)
85     add_subdirectory(gflags)
86   endif()
87   add_subdirectory(glog)
88 endif()
89
90 if(WITH_GTESTS)
91   add_subdirectory(gtest)
92   add_subdirectory(gmock)
93 endif()
94
95 if(WITH_SDL AND WITH_SDL_DYNLOAD)
96   add_subdirectory(sdlew)
97 endif()
98
99 if(WITH_AUDASPACE AND NOT WITH_SYSTEM_AUDASPACE)
100   set(AUDASPACE_CMAKE_CFG ${CMAKE_CURRENT_SOURCE_DIR}/audaspace/blender_config.cmake)
101   add_subdirectory(audaspace)
102 endif()
103
104 if(WITH_QUADRIFLOW)
105   set(QUADRIFLOW_CMAKE_CFG ${CMAKE_CURRENT_SOURCE_DIR}/quadriflow/blender_config.cmake)
106   add_subdirectory(quadriflow)
107 endif()
108
109 if(WITH_MOD_FLUID)
110   add_subdirectory(mantaflow)
111 endif()