Windows update

This commit is contained in:
Ilya Shurupov 2024-10-22 05:40:45 -07:00
parent c41dc20132
commit afad2c80e5
9 changed files with 64 additions and 51 deletions

21
cmake/FindOIDN.cmake Normal file
View file

@ -0,0 +1,21 @@
#set(OIDN_DEVICE_CPU ON)
#set(OIDN_STATIC_LIB ON)
#add_subdirectory(oidn)
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
set(CMAKE_PREFIX_PATH "${WINDOWS_LIBRARIES}/oidn-2.3.0.x64.windows")
endif()
find_package(OpenImageDenoise REQUIRED)
set(TARGETS_LIST OpenImageDenoise)
foreach(TARGET ${TARGETS_LIST})
if(TARGET ${TARGET})
message("Found ${TARGET}.")
else()
message(ERROR "Not Found ${TARGET}.")
endif()
endforeach()