Macro to find packages in cmake