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 /intern/cycles/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 'intern/cycles/CMakeLists.txt')
-rw-r--r-- | intern/cycles/CMakeLists.txt | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/intern/cycles/CMakeLists.txt b/intern/cycles/CMakeLists.txt index 7d4254fa5d4..3b1c66ad712 100644 --- a/intern/cycles/CMakeLists.txt +++ b/intern/cycles/CMakeLists.txt @@ -1,6 +1,11 @@ -set(CYCLES_INSTALL_PATH "scripts/addons/cycles") -set(WITH_CYCLES_BLENDER ON) +# Standalone or with Blender +if(NOT WITH_BLENDER AND WITH_CYCLES_STANDALONE) + set(CYCLES_INSTALL_PATH "") +else() + set(WITH_CYCLES_BLENDER ON) + set(CYCLES_INSTALL_PATH "scripts/addons/cycles") +endif() # External Libraries @@ -101,3 +106,7 @@ add_subdirectory(render) add_subdirectory(subd) add_subdirectory(util) +if(NOT WITH_BLENDER AND WITH_CYCLES_STANDALONE) + delayed_do_install(${CMAKE_BINARY_DIR}/bin) +endif() + |