link binaries the cmake way