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 /build_files
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 'build_files')
-rw-r--r--build_files/cmake/config/cycles_standalone.cmake14
1 files changed, 14 insertions, 0 deletions
diff --git a/build_files/cmake/config/cycles_standalone.cmake b/build_files/cmake/config/cycles_standalone.cmake
new file mode 100644
index 00000000000..45f9c100f93
--- /dev/null
+++ b/build_files/cmake/config/cycles_standalone.cmake
@@ -0,0 +1,14 @@
+# only compile Cycles standalone, without Blender
+#
+# Example usage:
+# cmake -C../blender/build_files/cmake/config/cycles_standalone.cmake ../blender
+#
+
+# disable Blender
+set(WITH_BLENDER OFF CACHE BOOL "" FORCE)
+set(WITH_PLAYER OFF CACHE BOOL "" FORCE)
+set(WITH_CYCLES_BLENDER OFF CACHE BOOL "" FORCE)
+
+# build Cycles
+set(WITH_CYCLES_STANDALONE ON CACHE BOOL "" FORCE)
+set(WITH_CYCLES_STANDALONE_GUI ON CACHE BOOL "" FORCE)