Comparison Analysis of Build Tools: XMake and CMake

Comparison Analysis of Build Tools: XMake and CMake

Syntax Comparison Empty Project XMake target("test") set_kind("binary") add_files("src/main.c") CMake add_executable(test "") target_sources(test PRIVATE src/main.c) Adding Source Files XMake XMake supports wildcard matching to add a batch of source files. *.c matches all files in the current directory, while **.c matches all files in recursive directories. This method saves time as there’s no need to modify … Read more

The First CMake Theory and Practice Video Tutorial is Here!

The First CMake Theory and Practice Video Tutorial is Here!

Click on “Computer Vision Life” above, and select “Star” Quickly get the latest valuable content CMake is a very useful cross-platform automation build tool that programmers have encountered to some extent. Here are some comments about CMake: CMake no longer makes you feel close to collapse when building projects Write once, run everywhere An automation … Read more

CMake Practical Guide (Part One)

CMake Practical Guide (Part One)

Click the blue text above to follow us Introduction Previously, we introduced the use of Autotools; today we will look at how to use CMake. CMake is a project build tool, similar to Autotools. It can be simply understood as a tool that helps us generate Makefiles for easier compilation. Usage Example (1) Create main.c, … Read more

Getting Started with CMake Build Tool

Getting Started with CMake Build Tool

Getting Started with CMake Build Tool Hello everyone, today I want to share with you a very practical tool – CMake. As a programmer, I understand the importance of managing and building code when developing large projects. CMake is like a project management assistant that helps us handle complex issues such as code compilation and … Read more

Introduction to CMake Basics

Introduction to CMake Basics

This article mainly refers to this link. 1. CMake Compilation Principles CMake is a cross-platform build tool that is more advanced than make and much easier to use. CMake primarily involves writing a CMakeLists.txt file and then using the cmake command to convert it into a makefile required by make. Finally, the make command compiles … Read more

Essential Guide to Managing C++ Projects with CMake

Essential Guide to Managing C++ Projects with CMake

1. Background CMake is a product derived from the development of several toolkits (VTK) by Kitware and some open-source developers, ultimately forming a system and becoming an independent open-source project. Its official website is cmake.org, where you can find more information about CMake. It is a cross-platform build tool that can describe the build process … Read more

Design Concepts and Usage of Modern CMake Tools

Design Concepts and Usage of Modern CMake Tools

Link: https://ukabuer.me/blog/more-modern-cmake/ For C/C++ developers, managing projects often becomes quite tricky when it comes to complex third-party dependencies, especially when cross-platform development is required. CMake, as a cross-platform build process management tool, provides mature solutions for finding and introducing third-party dependencies, creating build systems, testing programs, and installation. By writing a CMakeLists.txt file once and … Read more

Essential Guide for CMake Beginners to Master Build Skills

Essential Guide for CMake Beginners to Master Build Skills

Linux | Red Hat Certified | IT Technology | Operations Engineer 👇1000 people technical communication QQ group, note 【Official Account】 for faster approval 1. CMake Installation 1. Download the CMake installation package from the official website, I downloaded v3.26 wget https://github.com/Kitware/CMake/releases/download/v3.26.0-rc4/cmake-3.26.0-rc4-linux-x86_64.sh 2. Locate the downloaded .sh file and execute the script using bash bash cmake-3.26.0-rc4-linux-x86_64.sh … Read more

A Concise Guide to Managing C++ Projects with CMake

A Concise Guide to Managing C++ Projects with CMake

1. Background CMake is a product developed by Kitware and some open-source developers during the development of several toolkits (VTK), which ultimately formed a system and became an independent open-source project. Its official website is cmake.org, where more information about CMake can be found. It is a cross-platform build tool that can describe the build … Read more

CMake Tutorial: Building and Managing Projects

CMake Tutorial: Building and Managing Projects

Click the above“Mechanical and Electronic Engineering Technology” to follow us CMake is a free, cross-platform build tool designed for building, testing, and packaging software. CMake is used to control the compilation process of software using simple platform and compiler independent configuration files. CMake generates native makefiles and workspaces that can be used with your chosen … Read more