How to add a third party lib to a lib built by cmake and get a new lib as output?

When I search online for this matter I only see how to link libs together with the target_link_libraries() function. My understanding is that this will link the libs and produce an executable as output. I want to to have a new lib as output since I’m rewriting an old build system and want cmake behave as much as possible like the old one.