Using xmake and Zig for More Elegant Embedded System Development

Using xmake and Zig for More Elegant Embedded System Development

Introduction In the field of embedded system development, the stability and maintainability of build tools are crucial for the long-term development of projects. Embedded projects often require cross-compilation for different hardware platforms, each relying on specific build toolchains, making the environment setup complex. With the popularity of the LLVM toolchain, adopting modern build toolchains in … Read more

Compilation and Build Tools for C Language

Compilation and Build Tools for C Language

The C language can be used to write operating systems, drivers, and applications. When developing with C, we first write the source code, then compile and link the dependent libraries, and finally generate an executable program. Taking the gcc compiler as an example, as shown in the figure below: In actual projects, there will be … Read more

CMake Tutorial 1: What Is CMake?

CMake Tutorial 1: What Is CMake?

In the past year, my work has been focused on native development, as I have spent most of my time working with cocos2dx. Therefore, future articles will lean towards C++. Understanding CMake Before introducing CMake, it’s necessary to cover some basic computer science concepts to better understand what CMake is. How to Compile a Program … Read more

Flow Control and Functions in CMake

Flow Control and Functions in CMake

Background CMake CMake is a cross-platform open-source build tool used to manage and automate the generation of software project build processes. CMake automatically generates build system files suitable for different compilers and operating systems, such as Makefile and Visual Studio solutions, based on the descriptions in the CMakeLists.txt file. CMake Scripts Although CMake itself is … Read more

CMake: How to Link Shared Libraries

CMake: How to Link Shared Libraries

ClickBlue Text Follow Us CMake is a simple build tool that saves us from designing complex Makefiles. The author has previously organized two related articles as follows: “CMake, a Build Tool for Large Projects” “CMake Static and Dynamic Library Construction” Today’s article continues to expand on the project discussed in the previous article. If you … Read more

CMake Lesson 1: What Is CMake and Why You Need It?

CMake Lesson 1: What Is CMake and Why You Need It?

Click the blue textFollow the blogger 1. Introduction In the world of software development, code is just the first step. To turn this code into an executable program, we need the help of build tools. Today, we will get to know a very important tool – CMake. A previous article titled “Don’t Know How to … Read more

Using CMake as a Build Tool for Large Projects

Using CMake as a Build Tool for Large Projects

Clickthe blue text Follow us This article mainly describes the basic usage of CMake. In previous documents, I covered two build tools, Makefile and Autotools. Related articles are as follows: “What is Makefile on Linux?” “What knowledge should you know before working with Makefile?” “Practical examples of Makefile” “Compiling with Autotools and Yocto” Previously, I … Read more

CMake User Guide: From Beginner to Advanced

CMake User Guide: From Beginner to Advanced

Introduction CMake, as a cross-platform automated build tool, has become an indispensable part of modern C++ development. Whether for simple projects or complex embedded development, CMake provides efficient and flexible build management solutions. This article will take you deep into the use of CMake, from basic commands to advanced configurations, helping you master CMake comprehensively. … Read more

Common Syntax of CMake: If Statements

Common Syntax of CMake: If Statements

Previous Highlights:CMake Hello, WorldCMake VariablesCMake Official Tutorial (Basic Project Setup)CMake Official Tutorial (Creating Libraries)CMake Official Tutorial (Usage Requirements)CMake Official Tutorial (Installation and Testing) Through the official tutorials, we have gained a general understanding of using CMake. However, to write flexible project configurations and understand the CMakeLists.txt of third-party open-source libraries, we need to master the … Read more

A Beginner’s Guide to CMake: The Universal Build Tool

A Beginner's Guide to CMake: The Universal Build Tool

1. What is CMake? In short, CMake is a top-notch build configuration tool, renowned for its expertise in automatically generating Makefiles. When multiple developers collaborate on large projects, especially in complex environments that span various languages such as C/C++/Java or compilers, it acts like a conductor, orderly guiding the compilation process until it elegantly produces … Read more