diff options
author | Thomas Dinges <blender@dingto.org> | 2014-01-20 23:41:54 +0400 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2014-01-20 23:44:39 +0400 |
commit | 21264f89ac7183bf188bf077c39852a843877aa9 (patch) | |
tree | 78fcc4d2d29dc3226792d2a3c9880c84b2ae1d5b /CMakeLists.txt | |
parent | fc3be511f07a8107da5f9b0c8778d16295ced7cb (diff) |
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
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 7aa50e6c963..a432809ce32 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 |