Learning CMake When Necessary

Learning CMake When Necessary

Recently, I was working on a project that required knowledge of CMake. Previously, I was involved in BSP driver development, where CMake was not used at all. The only intersection with CMake was during the porting of the gateway project, which involved only minor modifications. It wasn’t until I started developing a project with CMake … Read more

CMake From Beginner to Expert: A Modern C++ Build System Guide

CMake From Beginner to Expert: A Modern C++ Build System Guide

Click the blue text to follow us CMake From Beginner to Expert: A Modern C++ Build System Guide Hello everyone, I am an old coder! Today we will discuss the complex issue of building C++ projects. Are you still troubled by tedious compilation and linking? Still manually managing dependencies? Come on, let me introduce you … Read more

An Analysis of the Differences Between CMake and Make

An Analysis of the Differences Between CMake and Make

CMake and Make are both software build systems that involve converting source code into executable programs. Both CMake and Make are tools designed to automate the build process, helping developers save time and effort. Below is a brief introduction to their differences. 1. How Does Make Work? Controls the generation of executable files and other … Read more

CMake: Detecting Environment

CMake: Detecting Environment

Introduction: Through previous studies, we have mastered the basic knowledge of CMake and C++. Although CMake is cross-platform, sometimes the source code is not entirely portable. To ensure that our source code can be cross-platform, configuring and/or building the code according to different platforms is an essential part of the project build process. ✦ Detecting … Read more

CMake: A Cross-Platform Build System

CMake: A Cross-Platform Build System

CMake: A Cross-Platform Build System In modern software development, build systems are an indispensable part. As project scales and complexities increase, developers face the challenge of managing the build process efficiently and flexibly. CMake, as a cross-platform build system, has gradually become the tool of choice for many developers due to its powerful features and … Read more

Building Documentation with Doxygen Using CMake

Building Documentation with Doxygen Using CMake

Introduction: Documentation is essential for all software projects: For users, it is important to understand how to obtain and build the code, and how to effectively use the source code or library; For developers, documentation can describe the details of your source code and help other programmers contribute to the project. <span>Doxygen</span> is a very … Read more

CMake Learning Notes: Modular Project Management (Part 1)

CMake Learning Notes: Modular Project Management (Part 1)

1. What is CMake? CMake is a cross-platform project build tool. Other project build tools we are familiar with include Makefile (which builds projects using the make command). Most IDE software integrates make, such as nmake in VS, GNU make in Linux, and qmake in Qt. These Make tools follow different specifications and standards, and … Read more

CMake: Conclusion

CMake: Conclusion

CMake Series: 1. CMake: Compile a Single Source File into an Executable 2. CMake: Detailed Explanation of Static and Dynamic Libraries (Linux/Windows) 3. CMake: Supplement on Static Libraries and Dynamics 4. CMake: Conditional Statements, Option Commands, and Specifying Compilers 5. CMake: Build Types (Debug, Release, and Others) 6. CMake: Set Compilation Options 7. CMake: Set … Read more

CMake: Superbuild Mode Explained

CMake: Superbuild Mode Explained

Introduction: Every project needs to handle dependencies, and using CMake makes it easy to check whether these dependencies exist in the configured project. In previous notes, we demonstrated how to find dependencies installed on the system, and so far we have been using this pattern. However, when dependencies are not met, we can only fail … Read more

CMake: Exporting Header Files

CMake: Exporting Header Files

Introduction: In fact, the relevant content of this article has been detailed in the CMake: Detailed Explanation of Static and Dynamic Libraries (Linux/Windows) notes, where it shows that CMake provides a platform-independent way to achieve its functionality. However, the issue of symbol visibility has not been addressed. The best approach regarding symbol visibility is to … Read more