exiv2 provides CMake targets:

    find_package(exiv2 CONFIG REQUIRED)
    target_link_libraries(main PRIVATE Exiv2::exiv2lib)
