Build system wrapper that provides Meson integration in CMake IDE's.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.vscode Port project to pip Oct 3, 2018
mcw Make autocompletion work in c projects Nov 5, 2018
test Port project to pip Oct 3, 2018
.flake8 Add flak8 config file Aug 5, 2018
.gitignore Port project to pip Oct 3, 2018
LICENSE Initial commit Feb 22, 2018
README.md
mcw.py Port project to pip Oct 3, 2018
setup.py

README.md

meson-cmake-wrapper

Build system wrapper that provides Meson integration in CMake IDE's.

Install

$ pip3 install meson-cmake-wrapper

Feature Matrix

Feature CLion Code::Blocks QtCreator VS Code
Detect targets ✔️ ✔️ ✔️ ✔️
Detect toolchain ✔️ ✔️ ✔️ ✔️
Detect target files ✔️ ✔️ ✔️ ✔️
Build target ✔️ ✔️ ✔️ ✔️
Run target ✔️ ✔️ ✔️ ✔️
Debug target ✔️ ✔️ ✔️ ✔️
Autocompletion ✔️ ✔️ ✔️ ✔️

Setup

CLion

  1. In Toolchain settings (File > Settings > Build, Execution, Deployment > Toolchains): Change CMake option to path of mcw.

  2. Create an empty CMakeLists.txt file in root of project.

Code::Blocks

  1. Generate Code::Blocks project:
$ mcw -G"CodeBlocks - Ninja" -DCMAKE_BUILD_TYPE=Debug <build-dir>
  1. In Code::Blocks open: <build-dir>/<project-name>.cbp

QtCreator

  1. In CMake settings (Tools > Options... > Build & Run > CMake): Add manual CMake option with path of mcw.

  2. Create an empty CMakeLists.txt file in root of project.

VS Code

  1. Install vscode-cmake-tools.

  2. Change "cmake.cmakePath" option to mcw.

  3. Create an empty CMakeLists.txt file in root of project.