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:
Diffstat (limited to 'source/creator/CMakeLists.txt')
-rw-r--r--source/creator/CMakeLists.txt15
1 files changed, 15 insertions, 0 deletions
diff --git a/source/creator/CMakeLists.txt b/source/creator/CMakeLists.txt
index 2115b2a5ff6..4ac8364aa19 100644
--- a/source/creator/CMakeLists.txt
+++ b/source/creator/CMakeLists.txt
@@ -80,6 +80,11 @@ if(WITH_BINRELOC)
blender_include_dirs(${BINRELOC_INCLUDE_DIRS})
endif()
+if(WITH_FREESTYLE)
+ add_definitions(-DWITH_FREESTYLE)
+ blender_include_dirs(../blender/freestyle)
+endif()
+
# Setup the exe sources and buildinfo
set(SRC
creator.c
@@ -279,15 +284,24 @@ if(WITH_PYTHON)
set(ADDON_EXCLUDE_CONDITIONAL "_addons_contrib/*") # dummy, wont do anything
endif()
+ # do not install freestyle dir if disabled
+ if(NOT WITH_FREESTYLE)
+ set(FREESTYLE_EXCLUDE_CONDITIONAL "freestyle/*")
+ else()
+ set(FREESTYLE_EXCLUDE_CONDITIONAL "_freestyle/*") # dummy, wont do anything
+ endif()
+
install(
DIRECTORY ${CMAKE_SOURCE_DIR}/release/scripts
DESTINATION ${TARGETDIR_VER}
PATTERN ".svn" EXCLUDE
PATTERN "__pycache__" EXCLUDE
PATTERN "${ADDON_EXCLUDE_CONDITIONAL}" EXCLUDE
+ PATTERN "${FREESTYLE_EXCLUDE_CONDITIONAL}" EXCLUDE
)
unset(ADDON_EXCLUDE_CONDITIONAL)
+ unset(FREESTYLE_EXCLUDE_CONDITIONAL)
endif()
# localization
@@ -852,6 +866,7 @@ endif()
bf_python_ext
bf_python_mathutils
bf_python_bmesh
+ bf_freestyle
bf_ikplugin
bf_modifiers
bf_bmesh