Link local libraries

Hi, Im a noob at this
How do I link local libraries that exist in say /opt/my_library/lib or from a deb url in

parts:
  some-name:
    source: .
    plugin: cmake
    build-packages:
      - gcc
      - make
      - here

thanks