diff --git a/meson.build b/meson.build
index 09a5d0f..132c4fe 100644
--- a/meson.build
+++ b/meson.build
@@ -115,14 +115,9 @@ elif get_option('svg-backend') == 'nanosvg'
   librsvg = declare_dependency()
   resvg = declare_dependency()
 elif get_option('svg-backend') == 'resvg'
-  # resvg doesn't provide pkg-config, so we need to find it manually
-  resvg = cc.find_library('resvg', required: true)
-  if cc.has_header('resvg.h')
-    svg_backend = 'resvg'
-    add_project_arguments('-DFUZZEL_ENABLE_SVG_RESVG=1', language: 'c')
-  else
-    error('resvg.h not found. Please install resvg development files.')
-  endif
+  resvg = dependency('resvg')
+  svg_backend = 'resvg'
+  add_project_arguments('-DFUZZEL_ENABLE_SVG_RESVG=1', language: 'c')
   librsvg = declare_dependency()
   nanosvg = declare_dependency()
 else
