Getting Started with CMake: From Basic C Code to Embedded Project Management

Getting Started with CMake: From Basic C Code to Embedded Project Management

Hello everyone, welcome to <span>LiXin Embedded</span>. Today we will talk about CMake, a powerful tool that makes cross-platform builds easy and helps you manage your projects efficiently. Why Do We Need CMake? If you are just starting to learn C++, you might be used to using an IDE like Visual Studio, VS Code, or CLion. … Read more

Compilation Tools: GCC, GNU, MinGW, MSVC, Make, CMake, Ninja

Compilation Tools: GCC, GNU, MinGW, MSVC, Make, CMake, Ninja

1. Starting with Hello World: How Does a Program Become an Executable File? Let’s start with the simplest C program: On Linux, to run this code, we need to use GCC to turn it into a program that the machine can execute. This process consists of 4 steps: Preprocessing (<span>hello.c</span> → <span>hello.i</span>): Handling preprocessing directives … Read more

Ignition-CMake2: The Swiss Army Knife for C++ Projects

Ignition-CMake2: The Swiss Army Knife for C++ Projects

Ignition-CMake2: The Swiss Army Knife for C++ Projects Ignition-CMake2 is a tool library specifically designed to simplify the build process for C++ projects. It acts like a “Swiss Army Knife,” providing C++ developers with a variety of convenient tools and modules to help them manage their projects more efficiently. While it is primarily used in … Read more

Compiling Fluent UDF Using GCC

Compiling Fluent UDF Using GCC

The latest versions of Fluent (such as Fluent 2025R1) come with a built-in clang compiler, allowing UDF compilation without the need to install Visual Studio. However, using GCC for UDF compilation has several advantages, including: (1) GCC compiles quickly and provides detailed debugging information. (2) It is convenient to compile and debug code using tools … Read more

Introduction to the Core Component of OpenWrt: libubox (1)

Introduction to the Core Component of OpenWrt: libubox (1)

During the project development process, many applications require common I/O operations, data structures, and algorithms. If each application needs to rewrite these functionalities, it will inevitably reduce development efficiency and increase the possibility of code instability. Therefore, many large projects develop basic libraries or services for other applications to use. These components are referred to … Read more

Common Syntax in CMake (Functions)

Common Syntax in CMake (Functions)

Previous exciting content: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)CMake Common Syntax (if Statements)CMake Common Syntax (Cache Variables)CMake Common Syntax (Environment Variables)CMake Common Syntax (Mathematical Calculations)CMake Common Syntax (Strings)CMake Common Syntax (Lists)CMake Common Syntax (Loops)CMake Common Syntax (Macros) Functions in CMake … Read more

Using CMake to Reference Your Own Developed Third-Party Library

Using CMake to Reference Your Own Developed Third-Party Library

Summary Developing your own library in C++ is quite convenient, but making it usable for others can be a bit challenging. It requires understanding the CMake toolset. This article may seem simple, but I spent three days working on this issue. Perhaps I am a bit slow, and with limited learning ability, I will strengthen … Read more

Introduction to CMake Basics

Introduction to CMake Basics

Introduction to CMake 1. Overview of CMake CMake is a project build tool that is cross-platform. Other popular project build tools include Makefile (which builds projects using the Make command). Most IDEs integrate make, such as: nmake for VS, GNU make for Linux, and qmake for Qt. If you write a makefile by hand, you … Read more

AFSim Development Training: Building Projects with CMake

AFSim Development Training: Building Projects with CMake

^_^ AFSim Development Training: This is the last article translated from the core development training documentation in the official source code training directory. A complete list of all documents can be found in: AFSIM Development Training. There may be intermittent updates to a simplified translation of the official AFSim software usage documentation in the future. … Read more

Using CMake for Project Development

Using CMake for Project Development

Installing CMake Tool yum install cmake Installing yaml-cpp Unzipping yaml-cpp [root@vbox ~]# unzip yaml-cpp-master.zip Entering the Source Directory [root@vbox ~]# cd yaml-cpp-master/ Creating Build Directory [root@vbox yaml-cpp-master]# mkdir build && cd build Generating Build Files [root@vbox build]# ls CMakeCache.txt cmake_install.cmake CTestTestfile.cmake Makefile util yaml-cpp-config-version.cmake CMakeFiles cmake_uninstall.cmake DartConfiguration.tcl Testing yaml-cpp-config.cmake yaml-cpp.pc CMake Installation (Generating Shared Library) … Read more