[cmake] move make_link function to a new MakeLink module
Summary: This function will be used also for electrum tests.
Test Plan: cmake .. -GNinja && ninja check-functional
Reviewers: #bitcoin_abc, Fabien
Reviewed By: #bitcoin_abc, Fabien
Subscribers: Fabien
Differential Revision: https://reviews.bitcoinabc.org/D14125