Menu

cpp-ide-generator

Purpose

The plugin arranges integration of the Gradle project with different IDEs. To generate IDE's project files plugin extends build with additional tasks.

Required plugins

The cpp-ide-generator require to work another Gradle core plugins: cpp-application/cpp-library/cpp-unit-test.

Usage

plugins {
    id 'cpp-library'
    id 'cpp-unit-test'
    id 'loggersoft.cpp-ide-generator' version '1.3'
}

Supported IDEs

  • Eclipse CDT
  • QT Creator
  • NetBeans
  • KDevelop
  • VS Code (clangd)

Configuration

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.

Tasks

  • generateIde - generates all enabled IDE.
  • cleanIde - cleans all enabled IDE.
  • generateIde + IDE name - generate specified enabled IDE (e.g. generateIdeQtCreator).
  • cleanIde + IDE name - cleans specified enabled IDE (e.g. cleanIdeQtCreator).