In CMake, setting the C++ standard is essential to use the latest features of the language. In this post, we achieve this by setting CMake global variables.
Computers, Coding and Caffeine
In CMake, setting the C++ standard is essential to use the latest features of the language. In this post, we achieve this by setting CMake global variables.
Writing and managing tests for C++ projects can be difficult. Luckily, CMake’s ctest & add_test helps you manage all of your tests in one place. Find out more!
Creating the first C++ program using CMake requires knowing add_executable(…). In this post, we explain all CMake modes and parameters for this command!
VSCode is one of the best C++ IDEs. In this post, you will learn how to debug your Linux C++ / CMake projects on WSL using VSCode’s launch configurations.
Google Test is the most popular testing framework for C++. In this post, you will learn how to integrate GTest into your CMake project in three different ways!
Learn how to create libraries with CMake’s “add_library”. Whether you need a static, shared or another type of library, this post has all C++ libraries covered!
Adding header include directories is straightforward with CMake. Learn how to tell the compiler where to find those pesky C++ header files with simple commands!
Conan and Vcpkg are excellent package managers for C/C++. In this post, we will analyse each tool and discuss features they provide!
CMake is the standard build system generator. We’ll look at the motivations, advantages and disadvantages of CMake, as well as how to write a simple CMakeLists.