libimobiledevice provides usage: find_package(PkgConfig REQUIRED) pkg_check_modules(LIBIMOBILEDEVICE REQUIRED IMPORTED_TARGET libimobiledevice-1.0) target_link_libraries(main PRIVATE PkgConfig::LIBIMOBILEDEVICE)