diff --git a/gnome/CMakeLists.txt b/gnome/CMakeLists.txt index fc38555df5..538c6f2ee7 100644 --- a/gnome/CMakeLists.txt +++ b/gnome/CMakeLists.txt @@ -1 +1,3 @@ -install(FILES heif.thumbnailer DESTINATION ${CMAKE_INSTALL_DATADIR}/thumbnailers) +if(WITH_EXAMPLES AND TARGET PNG::PNG) + install(FILES heif.thumbnailer DESTINATION ${CMAKE_INSTALL_DATADIR}/thumbnailers) +endif()