Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[INTERNAL] Create a task of type CMake #11

Open
jguidoux opened this issue Oct 13, 2015 · 0 comments
Open

[INTERNAL] Create a task of type CMake #11

jguidoux opened this issue Oct 13, 2015 · 0 comments

Comments

@jguidoux
Copy link

For the moment. If the user want to activate the cmake build in Gradle it should do that :

task launchCMake(type: Exec, group: "init") {

    workingDir "$buildDir"
    executable "cmake"
    args  ".."
}
compileCpp.dependsOn launchCMake

It will be interesting to create a task of type CMake wich simplify the configuration. This task extends the Exec task. So the user can just write this :

task launchCMake(type: CMake, group: "init")
compileCpp.dependsOn launchCMake

Of course, the user can override all defaults configurations :

task launchCMake(type: CMake, group: "init") {

    workingDir "foo
    executable "/usr/local/bin/cmake-3.1/"
    args  "../myProjects"
}
compileCpp.dependsOn launchCMake
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant