[cmake] add functional tests to cmake
Summary: Setup functional tests under cmake
Test Plan:
make check-functional
Reviewers: #bitcoin_abc, deadalnix
Reviewed By: #bitcoin_abc, deadalnix
Subscribers: deadalnix, teamcity
Differential Revision: https://reviews.bitcoinabc.org/D1356