diff options
-rw-r--r-- | CMakeLists.txt | 5 | ||||
-rw-r--r-- | source/blender/blendthumb/CMakeLists.txt | 1 | ||||
-rw-r--r-- | source/creator/CMakeLists.txt | 7 |
3 files changed, 11 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index f73149adc04..21a398e31a4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -157,8 +157,9 @@ option(WITH_BLENDER "Build blender (disable to build only the blender player)" O mark_as_advanced(WITH_BLENDER) if(APPLE) - # Currently this causes a build error linking, disable. - set(WITH_BLENDER_THUMBNAILER OFF) + # In future, can be used with `quicklookthumbnailing/qlthumbnailreply` to create file + # thumbnails for say Finder. Turn it off for now. + option(WITH_BLENDER_THUMBNAILER "Build \"blender-thumbnailer\" thumbnail extraction utility" OFF) elseif(WIN32) option(WITH_BLENDER_THUMBNAILER "Build \"BlendThumb.dll\" helper for Windows explorer integration" ON) else() diff --git a/source/blender/blendthumb/CMakeLists.txt b/source/blender/blendthumb/CMakeLists.txt index e2d278255ba..d64e942069d 100644 --- a/source/blender/blendthumb/CMakeLists.txt +++ b/source/blender/blendthumb/CMakeLists.txt @@ -65,6 +65,7 @@ else() ) add_executable(blender-thumbnailer ${SRC} ${SRC_CMD}) + setup_platform_linker_flags(blender-thumbnailer) target_link_libraries(blender-thumbnailer bf_blenlib) target_link_libraries(blender-thumbnailer ${PTHREADS_LIBRARIES}) endif() diff --git a/source/creator/CMakeLists.txt b/source/creator/CMakeLists.txt index 6f23fbe486a..b86b8999fd0 100644 --- a/source/creator/CMakeLists.txt +++ b/source/creator/CMakeLists.txt @@ -1082,6 +1082,13 @@ elseif(APPLE) Blender.app/Contents/ ) + if(WITH_BLENDER_THUMBNAILER) + install( + TARGETS blender-thumbnailer + DESTINATION Blender.app/Contents/MacOS/ + ) + endif() + if(WITH_OPENMP AND OPENMP_CUSTOM) install( FILES "${OpenMP_LIBRARY}" |