Initial commit of cloth modifier from branch rev 13453
[blender.git] / CMakeLists.txt
1 # $Id$
2 # ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
3 #
4 # This program is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU General Public License
6 # as published by the Free Software Foundation; either version 2
7 # of the License, or (at your option) any later version. The Blender
8 # Foundation also sells licenses for use in proprietary software under
9 # the Blender License.  See http://www.blender.org/BL/ for information
10 # about this.
11 #
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 # GNU General Public License for more details.
16 #
17 # You should have received a copy of the GNU General Public License
18 # along with this program; if not, write to the Free Software Foundation,
19 # Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
20 #
21 # The Original Code is Copyright (C) 2006, Blender Foundation
22 # All rights reserved.
23 #
24 # The Original Code is: all of this file.
25 #
26 # Contributor(s): Jacques Beaurain.
27 #
28 # ***** END GPL/BL DUAL LICENSE BLOCK *****
29
30 #-----------------------------------------------------------------------------
31 # We don't allow in-source builds. This causes no end of troubles because 
32 # all out-of-source builds will use the CMakeCache.txt file there and even 
33 # build the libs and objects in it. It will also conflict with the current 
34 # Makefile system for Blender
35
36 IF(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})
37 MESSAGE(FATAL_ERROR "CMake generation for blender is not allowed within the source directory! 
38 Remove the CMakeCache.txt file and try again from another folder, e.g.: 
39
40    rm CMakeCache.txt 
41    cd ..
42    mkdir cmake-make 
43    cd cmake-make
44    cmake -G \"Unix Makefiles\" ../blender
45 ")
46 ENDIF(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})
47
48 CMAKE_MINIMUM_REQUIRED(VERSION 2.4)
49 PROJECT(Blender)
50
51 #-----------------------------------------------------------------------------
52 # Redirect output files
53
54 SET(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin)
55 SET(LIBRARY_OUTPUT_PATH  ${CMAKE_BINARY_DIR}/lib)
56
57 #-----------------------------------------------------------------------------
58 # Set default config options
59 OPTION(WITH_PLAYER              "Build Player"                                          OFF)
60 OPTION(WITH_GAMEENGINE          "Enable Game Engine"                                    ON)
61 OPTION(WITH_BULLET              "Enable Bullet (Physics Engine)"                        ON)
62 OPTION(WITH_INTERNATIONAL       "Enable I18N   (International fonts and text)"          ON)
63 OPTION(WITH_VERSE               "Enable Verse  (http://verse.blender.org)"              OFF)
64 OPTION(WITH_ELBEEM              "Enable Elbeem (Fluid Simulation)"                      ON)
65 OPTION(WITH_QUICKTIME           "Enable Quicktime Support"                              OFF)
66 OPTION(WITH_OPENEXR             "Enable OpenEXR Support (http://www.openexr.com)"       OFF)
67 OPTION(WITH_FFMPEG              "Enable FFMPeg Support (http://ffmpeg.mplayerhq.hu/)"   OFF)
68 OPTION(WITH_OPENAL              "Enable OpenAL Support (http://www.openal.org)"         ON)
69 OPTION(YESIAMSTUPID             "Enable execution on 64-bit platforms"                  OFF)
70 OPTION(WITH_OPENMP              "Enable OpenMP (has to be supported by the compiler)"   OFF)
71
72 IF(NOT WITH_GAMEENGINE AND WITH_PLAYER)
73   MESSAGE("WARNING: WITH_PLAYER needs WITH_GAMEENGINE")
74 ENDIF(NOT WITH_GAMEENGINE AND WITH_PLAYER)
75
76 # For alternate Python locations the commandline can be used to override detected/default cache settings, e.g:
77 # On Unix: 
78 #   cmake -D PYTHON_LIB=/usr/local/lib/python2.3/config/libpython2.3.so -D PYTHON_INC=/usr/local/include/python2.3 -D PYTHON_BINARY=/usr/local/bin/python2.3 -G "Unix Makefiles" ../blender
79 # On Macs: 
80 #   cmake -D PYTHON_INC=/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -D PYTHON_LIBPATH=/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/config -D PYTHON_BINARY=/System/Library/Frameworks/Python.framework/Versions/2.5/bin/python2.5 -G Xcode ../blender
81 #
82 # When changing any of this remember to update the notes in doc/blender-cmake.txt
83
84 #-----------------------------------------------------------------------------
85 # Load some macros.
86 INCLUDE(CMake/macros.cmake)
87
88 #-----------------------------------------------------------------------------
89 #Platform specifics
90
91 IF(UNIX)
92   INCLUDE(${CMAKE_ROOT}/Modules/FindOpenAL.cmake)
93   IF(OPENAL_FOUND)
94     SET(WITH_OPENAL ON)
95     SET(OPENAL_LIB ${OPENAL_LIBRARY})
96     SET(OPENAL_INC ${OPENAL_INCLUDE_DIR})
97   ELSE(OPENAL_FOUND)
98     SET(WITH_OPENAL OFF)
99   ENDIF(OPENAL_FOUND)
100
101   FIND_LIBRARY(ALUT_LIBRARY
102     NAMES alut
103     PATHS
104     /usr/local/lib
105     /usr/lib
106     /sw/lib
107     /opt/local/lib
108     /opt/csw/lib
109     /opt/lib
110   )
111   IF(ALUT_LIBRARY)
112     SET(OPENAL_LIB ${OPENAL_LIB} ${ALUT_LIBRARY})
113   ENDIF(ALUT_LIBRARY)
114
115   FIND_LIBRARY(INTL_LIBRARY
116     NAMES intl
117     PATHS
118     /usr/local/lib
119     /usr/lib
120     /sw/lib
121     /opt/local/lib
122     /opt/csw/lib
123     /opt/lib
124   )
125   FIND_LIBRARY(ICONV_LIBRARY
126     NAMES iconv
127     PATHS
128     /usr/local/lib
129     /usr/lib
130     /sw/lib
131     /opt/local/lib
132     /opt/csw/lib
133     /opt/lib
134   )
135   IF(INTL_LIBRARY AND ICONV_LIBRARY)
136     SET(GETTEXT_LIB ${INTL_LIBRARY} ${ICONV_LIBRARY})
137   ENDIF(INTL_LIBRARY AND ICONV_LIBRARY)
138   
139   FIND_PATH(FREETYPE_INC
140     freetype
141     PATHS
142     /usr/local/include/freetype2
143     /usr/include/freetype2
144     /sw/include/freetype2
145     /opt/local/include/freetype2
146     /opt/csw/include/freetype2
147     /opt/include/freetype2
148     NO_DEFAULT_PATH
149   )
150   SET(FREETYPE_LIB freetype)
151
152   INCLUDE(${CMAKE_ROOT}/Modules/FindPythonLibs.cmake)
153   SET(PYTHON_INC "${PYTHON_INCLUDE_PATH}" CACHE STRING "")
154   SET(PYTHON_LIB "${PYTHON_LIBRARIES}" CACHE STRING "")
155   INCLUDE(${CMAKE_ROOT}/Modules/FindPythonInterp.cmake)
156   SET(PYTHON_BINARY ${PYTHON_EXECUTABLE} CACHE STRING "")
157   SET(PYTHON_LINKFLAGS "-Xlinker -export-dynamic")
158
159   INCLUDE(${CMAKE_ROOT}/Modules/FindSDL.cmake)
160   SET(SDL_INC ${SDL_INCLUDE_DIR})
161   SET(SDL_LIB ${SDL_LIBRARY})
162
163   FIND_PATH(OPENEXR_INC
164     ImfXdr.h
165     PATHS
166     /usr/local/include/OpenEXR
167     /usr/include/OpenEXR
168     /sw/include/OpenEXR
169     /opt/local/include/OpenEXR
170     /opt/csw/include/OpenEXR
171     /opt/include/OpenEXR
172   )
173   SET(OPENEXR_LIB Half IlmImf Iex Imath)
174
175   SET(FFMPEG /usr)
176   SET(FFMPEG_INC ${FFMPEG}/include)
177   SET(FFMPEG_LIB avformat avcodec avutil)
178   SET(FFMPEG_LIBPATH ${FFMPEG}/lib)
179
180   SET(JPEG_LIB jpeg)
181
182   SET(PNG_LIB png)
183
184   SET(ZLIB_LIB z)
185
186   SET(LLIBS "-lXi -lutil -lc -lm -lpthread -lstdc++")
187
188   IF(WITH_OPENMP)
189     SET(LLIBS "${LLIBS} -lgomp ")
190     SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fopenmp ")
191     SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fopenmp ")
192   ENDIF(WITH_OPENMP)
193
194
195   SET(PLATFORM_CFLAGS "-pipe -fPIC -funsigned-char -fno-strict-aliasing -DXP_UNIX -Wno-char-subscripts")
196
197   SET(PLATFORM_LINKFLAGS "-pthread")
198
199   INCLUDE_DIRECTORIES(/usr/include /usr/local/include)
200 ENDIF(UNIX)
201
202 IF(WIN32)
203   INCLUDE(${CMAKE_ROOT}/Modules/Platform/Windows-cl.cmake)
204
205   SET(LIBDIR ${CMAKE_SOURCE_DIR}/../lib/windows)
206
207   SET(PYTHON ${LIBDIR}/python)
208   SET(PYTHON_VERSION 2.5)
209   SET(PYTHON_INC "${PYTHON}/include/python${PYTHON_VERSION}")
210   SET(PYTHON_BINARY python)
211   SET(PYTHON_LIB python25)
212   SET(PYTHON_LIBPATH ${PYTHON}/lib)
213
214   #SET(WITH_OPENAL ON)
215   SET(OPENAL ${LIBDIR}/openal)
216   SET(OPENAL_INC ${OPENAL}/include ${OPENAL}/include/AL)
217   SET(OPENAL_LIB openal_static)
218   SET(OPENAL_LIBPATH ${OPENAL}/lib)
219
220   SET(PNG_LIB libpng_st)
221   SET(JPEG_LIB libjpeg)
222
223   SET(ZLIB ${LIBDIR}/zlib)
224   SET(ZLIB_INC ${ZLIB}/include)
225   SET(ZLIB_LIB libz)
226   SET(ZLIB_LIBPATH ${ZLIB}/lib)
227   
228   SET(PTHREADS ${LIBDIR}/pthreads)
229   SET(PTHREADS_INC ${PTHREADS}/include)
230   SET(PTHREADS_LIB pthreadVC2)
231   SET(PTHREADS_LIBPATH ${PTHREADS}/lib)
232   
233   SET(ICONV ${LIBDIR}/iconv)
234   SET(ICONV_INC ${ICONV}/include)
235   SET(ICONV_LIB iconv)
236   SET(ICONV_LIBPATH ${ICONV}/lib)
237   
238   SET(GETTEXT ${LIBDIR}/gettext)
239   SET(GETTEXT_INC ${GETTEXT}/include)
240   SET(GETTEXT_LIB gnu_gettext)
241   SET(GETTEXT_LIBPATH ${GETTEXT}/lib)
242
243   SET(FREETYPE ${LIBDIR}/freetype)
244   SET(FREETYPE_INC ${FREETYPE}/include ${FREETYPE}/include/freetype2)
245   SET(FREETYPE_LIBPATH ${FREETYPE}/lib)
246   SET(FREETYPE_LIB freetype2ST)
247   
248   SET(OPENEXR ${LIBDIR}/openexr)
249   SET(OPENEXR_INC ${OPENEXR}/include ${OPENEXR}/include/IlmImf ${OPENEXR}/include/Iex ${OPENEXR}/include/Imath)
250   SET(OPENEXR_LIB Iex Half IlmImf Imath IlmThread)
251   IF (MSVC80)
252   SET(OPENEXR_LIBPATH ${OPENEXR}/lib_vs2005)
253   ELSE (MSVC80)
254   SET(OPENEXR_LIBPATH ${OPENEXR}/lib_msvc)
255   ENDIF(MSVC80)
256   
257   SET(QUICKTIME ${LIBDIR}/QTDevWin)
258   SET(QUICKTIME_INC ${QUICKTIME}/CIncludes)
259   SET(QUICKTIME_LIB qtmlClient)
260   SET(QUICKTIME_LIBPATH ${QUICKTIME}/Libraries)
261
262   SET(FFMPEG ${LIBDIR}/ffmpeg)
263   SET(FFMPEG_INC ${FFMPEG}/include)
264   SET(FFMPEG_LIB avcodec-51 avformat-51 avutil-49)
265   SET(FFMPEG_LIBPATH ${FFMPEG}/lib)
266
267   SET(LLIBS kernel32 user32 gdi32 comdlg32 advapi32 shell32 ole32 oleaut32 uuid ws2_32 vfw32 winmm)
268   IF(WITH_OPENAL)
269     SET(LLIBS ${LLIBS} dxguid)
270   ENDIF(WITH_OPENAL)
271
272   SET(CMAKE_CXX_FLAGS_DEBUG "/D_CRT_NONSTDC_NO_DEPRECATE /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /wd4800 /wd4244 /wd4305 /D_DEBUG /Od /Gm /EHsc /RTC1 /MTd /W3 /nologo /ZI /J" CACHE STRING "MSVC MT flags " FORCE)
273   SET(CMAKE_CXX_FLAGS_RELEASE "/D_CRT_NONSTDC_NO_DEPRECATE /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /wd4800 /wd4244 /wd4305 /O2 /Ob2 /DNDEBUG /EHsc /MT /W3 /nologo /J" CACHE STRING "MSVC MT flags " FORCE)
274   SET(CMAKE_CXX_FLAGS_MINSIZEREL "/D_CRT_NONSTDC_NO_DEPRECATE /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /wd4800 /wd4244 /wd4305 /O1 /Ob1 /DNDEBUG /EHsc /MT /W3 /nologo /J" CACHE STRING "MSVC MT flags " FORCE)
275   SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO "/D_CRT_NONSTDC_NO_DEPRECATE /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /wd4800 /wd4244 /wd4305 /O2 /Ob1 /DNDEBUG /EHsc /MT /W3 /nologo /Zi /J" CACHE STRING "MSVC MT flags " FORCE)
276   SET(CMAKE_C_FLAGS_DEBUG "/D_CRT_NONSTDC_NO_DEPRECATE /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /wd4800 /wd4244 /wd4305 /D_DEBUG /Od /Gm /EHsc /RTC1 /MTd /W3 /nologo /ZI /J" CACHE STRING "MSVC MT flags " FORCE)
277   SET(CMAKE_C_FLAGS_RELEASE "/D_CRT_NONSTDC_NO_DEPRECATE /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /wd4800 /wd4244 /wd4305 /O2 /Ob2 /DNDEBUG /EHsc /MT /W3 /nologo /J" CACHE STRING "MSVC MT flags " FORCE)
278   SET(CMAKE_C_FLAGS_MINSIZEREL "/D_CRT_NONSTDC_NO_DEPRECATE /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /wd4800 /wd4244 /wd4305 /O1 /Ob1 /DNDEBUG /EHsc /MT /W3 /nologo /J" CACHE STRING "MSVC MT flags " FORCE)
279   SET(CMAKE_C_FLAGS_RELWITHDEBINFO "/D_CRT_NONSTDC_NO_DEPRECATE /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /wd4800 /wd4244 /wd4305 /O2 /Ob1 /DNDEBUG /EHsc /MT /W3 /nologo /Zi /J" CACHE STRING "MSVC MT flags " FORCE)
280
281   IF(WITH_OPENMP)
282     SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /openmp ")
283     SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /openmp ")
284   ENDIF(WITH_OPENMP)
285
286   SET(SDL ${LIBDIR}/sdl)
287   SET(SDL_INC ${SDL}/include)
288   SET(SDL_LIB SDL)
289   SET(SDL_LIBPATH ${SDL}/lib)
290
291   SET(PNG "${LIBDIR}/png")
292   SET(PNG_INC "${PNG}/include")
293   SET(PNG_LIBPATH ${PNG}/lib)
294
295   SET(JPEG "${LIBDIR}/jpeg")
296   SET(JPEG_INC "${JPEG}/include")
297   SET(JPEG_LIBPATH ${JPEG}/lib)
298
299   SET(TIFF ${LIBDIR}/tiff)
300   SET(TIFF_INC ${TIFF}/include)
301   
302   SET(WINTAB_INC ${LIBDIR}/wintab/include) 
303
304   SET(PLATFORM_LINKFLAGS "/NODEFAULTLIB:libc.lib")
305   SET(CMAKE_EXE_LINKER_FLAGS_DEBUG "${CMAKE_EXE_LINKER_FLAGS_DEBUG} /NODEFAULTLIB:libcmt.lib ")
306 ENDIF(WIN32)
307
308 IF(APPLE)
309   IF(CMAKE_OSX_ARCHITECTURES MATCHES i386)
310     SET(LIBDIR ${CMAKE_SOURCE_DIR}/../lib/darwin-8.x.i386)
311   ELSE(CMAKE_OSX_ARCHITECTURES MATCHES i386)
312     SET(LIBDIR ${CMAKE_SOURCE_DIR}/../lib/darwin-6.1-powerpc)
313   ENDIF(CMAKE_OSX_ARCHITECTURES MATCHES i386)
314
315   INCLUDE(${CMAKE_ROOT}/Modules/FindOpenAL.cmake)
316   IF(OPENAL_FOUND)
317     SET(WITH_OPENAL ON)
318     SET(OPENAL_LIB ${OPENAL_LIBRARY})
319     SET(OPENAL_INC ${OPENAL_INCLUDE_DIR})
320   ELSE(OPENAL_FOUND)
321     SET(WITH_OPENAL OFF)
322   ENDIF(OPENAL_FOUND)
323
324   SET(PYTHON /System/Library/Frameworks/Python.framework/Versions/)
325   SET(PYTHON_VERSION 2.3)
326   SET(PYTHON_INC "${PYTHON}${PYTHON_VERSION}/include/python${PYTHON_VERSION}" CACHE STRING "")
327   SET(PYTHON_BINARY ${PYTHON}${PYTHON_VERSION}/bin/python${PYTHON_VERSION} CACHE STRING "")
328   SET(PYTHON_LIB "")
329   SET(PYTHON_LIBPATH ${PYTHON}${PYTHON_VERSION}/lib/python${PYTHON_VERSION}/config CACHE STRING "")
330   SET(PYTHON_LINKFLAGS "-u __dummy -u _PyMac_Error -framework System -framework Python")
331
332   SET(GETTEXT ${LIBDIR}/gettext)
333   SET(GETTEXT_INC "${GETTEXT}/include")
334   SET(GETTEXT_LIB intl iconv)
335   SET(GETTEXT_LIBPATH ${GETTEXT}/lib)
336
337   SET(PNG_LIB png)
338   SET(JPEG_LIB jpeg)
339
340   SET(ZLIB /usr)
341   SET(ZLIB_INC "${ZLIB}/include")
342   SET(ZLIB_LIB z)
343
344   SET(FREETYPE ${LIBDIR}/freetype)
345   SET(FREETYPE_INC ${FREETYPE}/include ${FREETYPE}/include/freetype2)
346   SET(FREETYPE_LIBPATH ${FREETYPE}/lib)
347   SET(FREETYPE_LIB freetype)
348
349   SET(OPENEXR ${LIBDIR}/openexr)
350   SET(OPENEXR_INC ${OPENEXR}/include/OpenEXR ${OPENEXR}/include)
351   IF(CMAKE_OSX_ARCHITECTURES MATCHES i386)
352     SET(OPENEXR_LIB Iex Half IlmImf Imath IlmThread)
353   ELSE(CMAKE_OSX_ARCHITECTURES MATCHES i386)
354     SET(OPENEXR_LIB Iex Half IlmImf Imath)
355   ENDIF(CMAKE_OSX_ARCHITECTURES MATCHES i386)
356   SET(OPENEXR_LIBPATH ${OPENEXR}/lib)
357
358   SET(LLIBS stdc++ SystemStubs)
359
360   SET(PLATFORM_CFLAGS "-pipe -fPIC -funsigned-char -fno-strict-aliasing")
361   SET(PLATFORM_LINKFLAGS "-fexceptions -framework CoreServices -framework Foundation -framework IOKit -framework AppKit -framework Carbon -framework AGL -framework AudioUnit -framework AudioToolbox -framework CoreAudio -framework QuickTime")
362
363   IF(WITH_OPENMP)
364     SET(LLIBS "${LLIBS} -lgomp ")
365     SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fopenmp ")
366     SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fopenmp ")
367   ENDIF(WITH_OPENMP)
368
369   SET(SDL ${LIBDIR}/sdl)
370   SET(SDL_INC ${SDL}/include)
371   SET(SDL_LIB SDL)
372   SET(SDL_LIBPATH ${SDL}/lib)
373
374   SET(PNG "${LIBDIR}/png")
375   SET(PNG_INC "${PNG}/include")
376   SET(PNG_LIBPATH ${PNG}/lib)
377
378   SET(JPEG "${LIBDIR}/jpeg")
379   SET(JPEG_INC "${JPEG}/include")
380   SET(JPEG_LIBPATH ${JPEG}/lib)
381
382   SET(TIFF ${LIBDIR}/tiff)
383   SET(TIFF_INC ${TIFF}/include)
384
385   SET(EXETYPE MACOSX_BUNDLE)
386 ENDIF(APPLE)
387
388 IF(CMAKE_SYSTEM_NAME MATCHES "Linux")
389   SET(BINRELOC ${CMAKE_SOURCE_DIR}/extern/binreloc)
390   SET(BINRELOC_INC ${BINRELOC}/include)
391 ENDIF(CMAKE_SYSTEM_NAME MATCHES "Linux")
392
393 #-----------------------------------------------------------------------------
394 # Common.
395 SET(VERSE_INC ${CMAKE_SOURCE_DIR}/extern/verse/dist)
396
397 SET(FTGL ${CMAKE_SOURCE_DIR}/extern/bFTGL)
398 SET(FTGL_INC ${FTGL}/include)
399 SET(FTGL_LIB extern_ftgl)
400
401
402 #-----------------------------------------------------------------------------
403 # Configure OpenGL.
404 INCLUDE(${CMAKE_ROOT}/Modules/FindOpenGL.cmake)
405 INCLUDE_DIRECTORIES(${OPENGL_INCLUDE_DIR})
406 #-----------------------------------------------------------------------------
407 # Extra compile flags
408 IF(WITH_GAMEENGINE)
409   SET(PLATFORM_CFLAGS "${PLATFORM_CFLAGS} -DGAMEBLENDER ")
410 ENDIF(WITH_GAMEENGINE)
411 SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${PLATFORM_CFLAGS} ")
412 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${PLATFORM_CFLAGS} ")
413
414 #-----------------------------------------------------------------------------
415 # Libraries
416 FILE(WRITE ${CMAKE_BINARY_DIR}/cmake_blender_libs.txt "")
417 SUBDIRS(
418   intern
419   extern
420   source
421 )
422
423
424 #-----------------------------------------------------------------------------
425 # Blender Application
426 SUBDIRS(source/creator)
427
428 #-----------------------------------------------------------------------------
429 # Blender Player
430 IF(WITH_PLAYER)
431   SUBDIRS(blenderplayer)
432 ENDIF(WITH_PLAYER)