[CMAKE] Add the check-security target
Summary:
This target runs the security-check.py scripts on the executables.
This is the equivalent of the autotools check-security rule.
Depends on D4136.
Test Plan:
Build the depends subsystem for linux 64, then:
mkdir buildcmake && cd buildcmake cmake -GNinja .. \ -DENABLE_GLIBC_BACK_COMPAT=ON \ -DENABLE_STATIC_LIBSTDCXX=ON \ -DENABLE_REDUCE_EXPORTS=ON \ -DCMAKE_TOOLCHAIN_FILE=../cmake/platforms/Linux64.cmake ninja check-security
If should be successful.
Reviewers: #bitcoin_abc, deadalnix, jasonbcox
Reviewed By: #bitcoin_abc, jasonbcox
Differential Revision: https://reviews.bitcoinabc.org/D4137