Click here to Skip to main content
15,886,806 members
Articles / Programming Languages / C++

A CMake Tutorial for Visual C++ Developers

Rate me:
Please Sign up or sign in to vote.
4.98/5 (22 votes)
10 Apr 2017CPOL12 min read 101.4K   1.9K   50  
This article provides an introduction to CMake through a series of examples to help you, as VC++ developers, to create and maintain CMake projects.
CMake is a cross-platform open-source tool for defining the build process for native applications independently of compilers and environments. This article provides an introduction to CMake through a series of examples to help you, as VC++ developers, to create and maintain CMake projects. Examples like building message, setting variables, adding subdirectories, adding libraries and executables, including and linking directories, adding library dependencies, and setting build dependencies. We will also look at building the scripts explicitly and building cross-IDE.

Views

Daily Counts

Downloads

Weekly Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect Visma Software
Romania Romania
Marius Bancila is the author of Modern C++ Programming Cookbook and The Modern C++ Challenge. He has been a Microsoft MVP since 2006, initially for VC++ and nowadays for Development technologies. He works as a system architect for Visma, a Norwegian-based company. He works with various technologies, both managed and unmanaged, for desktop, cloud, and mobile, mainly developing with VC++ and VC#. He keeps a blog at http://www.mariusbancila.ro/blog, focused on Windows programming. You can follow Marius on Twitter at @mariusbancila.

Comments and Discussions