OSX/osl: add install of shader headers needed for osl_nodes compile
authorJens Verwiebe <info@jensverwiebe.de>
Mon, 24 Sep 2012 19:25:32 +0000 (19:25 +0000)
committerJens Verwiebe <info@jensverwiebe.de>
Mon, 24 Sep 2012 19:25:32 +0000 (19:25 +0000)
source/creator/CMakeLists.txt

index 4a460d7cc05e6d646cb8e7116499011fa26d6b2e..0068bb98a95a460e40b91bf5b44786941926923e 100644 (file)
@@ -736,7 +736,15 @@ elseif(APPLE)
                )
 
        endif()
-
+       
+       #OSL shader_headers needed
+       if(WITH_CYCLES_OSL)
+               install(
+                       FILES ${LIBDIR}/osl/shaders/oslutil.h ${LIBDIR}/osl/shaders/stdosl.h
+                       DESTINATION ${TARGETDIR}/blender.app/Contents/shaders/
+               )
+       endif()
+       
        # install blenderplayer bundle - copy of blender.app above. re-using macros et al
        # note we are using OSX Bundle as base and copying Blender dummy bundle on top of it
        if(WITH_GAMEENGINE AND WITH_PLAYER)
@@ -778,6 +786,7 @@ elseif(APPLE)
                endif()
 
        endif()
+               
 endif()
 
 # -----------------------------------------------------------------------------