Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Dinges <blender@dingto.org>2014-01-20 23:41:54 +0400
committerThomas Dinges <blender@dingto.org>2014-01-20 23:44:39 +0400
commit21264f89ac7183bf188bf077c39852a843877aa9 (patch)
tree78fcc4d2d29dc3226792d2a3c9880c84b2ae1d5b /intern/cycles/CMakeLists.txt
parentfc3be511f07a8107da5f9b0c8778d16295ced7cb (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.txt13
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()
+