A Complete Guide to Using CMake

A Complete Guide to Using CMake

Scan to FollowLearn Embedded Together, Learn Together, Grow Together Hello everyone, I previously shared some articles related to makefiles: Make Command Tutorial | A Hands-On Guide to Makefile Linux Kernel Makefile Execution Process Some General Makefile Templates Today, I am sharing an article about CMake, which can generate local Makefiles without having to write complex … Read more

Cross-Compiling C and C++ with CMake

Cross-Compiling C and C++ with CMake

Embedded development, especially in SOA (Service Oriented Architecture), often encounters a scenario where part of the business functionality is developed in C and is relatively mature, and there is a desire to reuse it directly. However, the underlying services obtained by the business layer are written in C++. If both need to be placed in … Read more

Detailed Explanation of CMakeLists Syntax Rules

Detailed Explanation of CMakeLists Syntax Rules

Author丨zhanghm1995@blog Source丨https://blog.csdn.net/zhanghm1995/article/details/80902807 Editor丨3D Vision Workshop Basic Syntax Rules CMake requires that a CMakeLists.txt file be created in the main project directory and all subdirectories containing source code. Pay attention to case sensitivity (CM is uppercase, Lists has an uppercase L and do not omit the s). CMake variables are accessed using the ${} syntax, but … Read more

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

Master CMake for Building Static and Dynamic Libraries

Master CMake for Building Static and Dynamic Libraries

1. Task Explain the process of building static and dynamic libraries with CMake in a simple and understandable way using examples. Tasks: Create a static library and a dynamic library, providing the HelloFunc function for use in other programs, which outputs the string ‘Hello World!’ to the terminal. Install header files and shared libraries. Write … 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

Compiling and Debugging Fluent UDF with Visual Studio and CMake

Compiling and Debugging Fluent UDF with Visual Studio and CMake

This article introduces the method of compiling and debugging Fluent UDF using Visual Studio and CMake. Note: This article refers to the article published by <span>Jiaoran Today What to Play</span> at https://zhuanlan.zhihu.com/p/492619039, and I extend my highest respect to the author’s spirit of sharing. ” There are many methods for compiling Fluent UDF. As a … Read more

Application and Practice of CMake

Application and Practice of CMake

Click on “Computer Vision Life” above and select “Star”. Quickly obtain the latest content. The SLAM Study Group has summarized all previous live streams, including videos and PPTs, for everyone’s secondary learning. Topic: “Application and Practice of CMake” Content: Using CMake, common commands, practical examples. Guest:Master’s from Jilin University, responsible for intelligent driving software system … Read more

CMake Compilation Tool and Project Building

CMake Compilation Tool and Project Building

Follow the public account “CV Research Society“ Set it as “Starred“, heavy content delivered to you first! Article Guide This article starts with the compilation process of C/C++ code, clarifying the relationship between Make and Makefile, CMake and CMakeLists, and finally providing examples based on the syntax rules of CMakeLists to help everyone become familiar … Read more