The plugin arranges integration of the Gradle project with different IDEs. To generate IDE's project files plugin extends build with additional tasks.
The cpp-ide-generator
require to work another Gradle core plugins: cpp-application
/cpp-library
/cpp-unit-test
.
plugins {
id 'cpp-library'
id 'cpp-unit-test'
id 'loggersoft.cpp-ide-generator' version '1.3'
}
ide {
autoGenerate = false
eclipse = true
qtCreator = true
netBeans = true
kdevelop = true
vsCode = true
}
You can switch on/off the ability of project files generation for each IDE.
If autoGenerate
is switched on all enabled IDEs projects will be generated/updated (if required) on each project compilation. Also, all IDE project files will be cleaned during the clean
task in this mode.