Cycles: Add a cmake config to easily compile Cycles Standalone.

On Linux/Mac OS X, simply type "make cycles" inside the Blender source directory, to get a standalone build of the engine.

Reviewed by: Brecht
Differential Revision: https://developer.blender.org/D228
This commit is contained in:
Thomas Dinges
2014-01-20 20:41:54 +01:00
parent fc3be511f0
commit 21264f89ac
4 changed files with 41 additions and 6 deletions

View File

@@ -2255,10 +2255,16 @@ endif()
#-----------------------------------------------------------------------------
# Libraries
add_subdirectory(source)
add_subdirectory(intern)
add_subdirectory(extern)
if(WITH_BLENDER OR WITH_PLAYER)
add_subdirectory(source)
add_subdirectory(intern)
add_subdirectory(extern)
elseif(WITH_CYCLES_STANDALONE)
add_subdirectory(intern/cycles)
if(WITH_CYCLES_STANDALONE_GUI)
add_subdirectory(extern/glew)
endif()
endif()
#-----------------------------------------------------------------------------
# Blender Application