diff options
author | Benjamin Schmithüsen <UX3D-schmithuesen> | 2019-04-11 12:26:23 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-04-11 13:04:53 +0300 |
commit | 4bad4bfc6ae5a81c44038cb1259f44befbb3afe0 (patch) | |
tree | 9b196d3ed0466406ba85441ea2314bedaeaea783 /source/creator/CMakeLists.txt | |
parent | a9d6356fee28d3567e956415a8eb08ab0bb7a0ab (diff) |
glTF: add Draco shared library for mesh compression.
Draco is added as a library under extern/ and builds a shared library that is
installed into the Python site-packages. This is then loaded by the glTF add-on
to do mesh compression.
Differential Revision: https://developer.blender.org/D4501
Diffstat (limited to 'source/creator/CMakeLists.txt')
-rw-r--r-- | source/creator/CMakeLists.txt | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/source/creator/CMakeLists.txt b/source/creator/CMakeLists.txt index 78cdf5c3796..36da605b4ba 100644 --- a/source/creator/CMakeLists.txt +++ b/source/creator/CMakeLists.txt @@ -633,6 +633,13 @@ if(UNIX AND NOT APPLE) endif() endif() + + if(WITH_DRACO) + install( + PROGRAMS ${CMAKE_BINARY_DIR}/lib/lib${DRACO_LIB_NAME}.so + DESTINATION ${TARGETDIR_VER}/python/lib/python${PYTHON_VERSION}/site-packages + ) + endif() elseif(WIN32) set(BLENDER_TEXT_FILES_DESTINATION ".") @@ -832,6 +839,12 @@ elseif(WIN32) DESTINATION "." ) + if(WITH_DRACO) + install( + PROGRAMS ${CMAKE_BINARY_DIR}/lib/$<CONFIG>/${DRACO_LIB_NAME}.dll + DESTINATION ${TARGETDIR_VER}/python/lib/site-packages + ) + endif() elseif(APPLE) # handy install macro to exclude files, we use \$ escape for the "to" @@ -936,6 +949,12 @@ elseif(APPLE) unset(_py_inc_suffix) endif() + if(WITH_DRACO) + install( + PROGRAMS ${CMAKE_BINARY_DIR}/lib/lib${DRACO_LIB_NAME}.dylib + DESTINATION ${TARGETDIR_VER}/python/lib/python${PYTHON_VERSION}/site-packages + ) + endif() endif() # ----------------------------------------------------------------------------- |