Skip to main content

CMake converter for Visual Studio projects

Project description Code Health Documentation Status Most recent PyPi version Supported Python versions License AGPL v3


This project aims to facilitate the conversion of Visual Studio solution to CMake projects. The goal is to give to a Python script, a *.sln file, and output a set of CMakeLists.txt that may be used for generating visual studio solution backward as perfect as possible. Project is useful for porting VS projects into CMake build system.

Note : Actually, it’s only works with C/C++ (*.vcxproj) and Fortran (*.vfproj) projects.

Install & Run

Install package from PyPI

Install last stable release of cmake-converter:

pip install cmake-converter

Note : If you found an issue in the package installed from pip, please, do not create github issue at once and check for pre-release version (pip -pre) or last source from develop first. It might be has fixed already and ready to release.

Install package from source code

Simply clone or download the repository and type the following command to install it:

# Inside repository folder.
pip install .


After install library, just run the script as below. Your *.sln file is of course required:

cmake-converter -s <path/to/file.sln>

Note : If you satisfied with conversion, give a star to the project and consider to donate, please.


Documentation for CMake Converter is available on Read The Docs.

Bugs, issues and contributing

Contributions to this project are welcome and encouraged … Issues in the project repository are the common way to raise an information.

Note: if you have an issue, please provide me if possible the visual studio project involved.


If you appreciate my efforts related to this project, give me a gift. I’ll be glad to get some money working for free ;) To make a donation - please press the button below.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cmake_converter-2.2.0.tar.gz (60.8 kB view hashes)

Uploaded source

Built Distribution

cmake_converter-2.2.0-py3-none-any.whl (79.5 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page