CMake: Windows: Install oidn HIP kernel if available

This commit is contained in:
Ray Molenkamp
2023-12-23 12:46:14 -07:00
parent c6ae08b06b
commit 6f21b09e73

View File

@@ -582,7 +582,7 @@ if(WIN32)
DESTINATION ${TARGETDIR_VER}/python/lib/site-packages
CONFIGURATIONS Release;RelWithDebInfo;MinSizeRel
)
endif()
endif()
if(EXISTS ${LIBDIR}/OpenImageDenoise/bin/openimagedenoise.dll) # 4.0
windows_install_shared_manifest(
FILES
@@ -592,6 +592,12 @@ if(WIN32)
${LIBDIR}/OpenImageDenoise/bin/OpenImageDenoise_device_sycl.dll
)
endif()
if(EXISTS ${LIBDIR}/OpenImageDenoise/bin/OpenImageDenoise_device_hip.dll) # 4.1
windows_install_shared_manifest(
FILES
${LIBDIR}/OpenImageDenoise/bin/OpenImageDenoise_device_hip.dll
)
endif()
endif()
# Show helpful tip.
@@ -1136,7 +1142,7 @@ elseif(WIN32)
${LIBDIR}/materialx/bin/MaterialXGenMsl_d.dll
DEBUG
)
endif()
endif()
windows_install_shared_manifest(
FILES
${LIBDIR}/materialx/bin/MaterialXCore_d.dll
@@ -1292,7 +1298,7 @@ elseif(WIN32)
CONFIGURATIONS Release;RelWithDebInfo;MinSizeRel
)
endif()
# this will exist for 4.1 lib folders
if(EXISTS ${LIBDIR}/openvdb/python/pyopenvdb_d.cp${_PYTHON_VERSION_NO_DOTS}-win_amd64.pyd)
install(
@@ -1305,7 +1311,7 @@ elseif(WIN32)
DESTINATION ${TARGETDIR_VER}/python/lib/site-packages
CONFIGURATIONS Release;RelWithDebInfo;MinSizeRel
)
endif()
endif()
# MaterialX python bindings
install(