1 2 3
find_package(PkgConfig REQUIRED) pkg_check_modules(FLAC REQUIRED IMPORTED_TARGET flac>=1.3.3) target_link_libraries(aaruformat PkgConfig::FLAC)