How to set destinationDir on an InstallExecutable task type

I have this build script and would like to set the destinationDir for the InstallExecutable task:

apply plugin: "cpp"

model {
    components {
        hello(NativeExecutableSpec) {
            binaries.all {
                cppCompiler.args "-O2"
            }
        }
    }
}

Any hints are very much appreciated :slight_smile: