have you maybe missed to copy the relevant dll’s?
This is needed on windows.
Following the examples, I include those lines at the bottom of the CMakeLists.txt
if (MSVC)
  file(GLOB TORCH_DLLS "${TORCH_INSTALL_PREFIX}/lib/*.dll")
  add_custom_command(TARGET deepsmlm_interface
                     POST_BUILD
                     COMMAND ${CMAKE_COMMAND} -E copy_if_different
                     ${TORCH_DLLS}
                     $<TARGET_FILE_DIR:deepsmlm_interface>)
endif (MSVC)