CMake Tutorial: Build and Link Libraries

CMake Tutorial: Build and Link Libraries

# Specify Minimum Version, Not Required cmake_minimum_required(VERSION 3.2) # Project Name project(chat) # Define the Executable File Generated by This Project #add_executable(ExecutableName SourceFileName.c) add_executable(chat_app) # When there are many files, define the file names as variables #set(VariableName SourceFile) set(SRC_LIST add.cpp div.cpp main.cpp mult.cpp sub.cpp) #add_executable(ExecutableName SourceFiles) Use $ as a value symbol and wrap variables … Read more

CMake: Installing a Project

CMake: Installing a Project

Introduction: This note will introduce some basic concepts through a small project, which will also be used in later notes. Installing files, libraries, and executables is a very basic task, but it can also bring some issues. This note demonstrates how to effectively avoid these problems using CMake. ✦ Project Structure ✦ ├── CMakeLists.txt ├── … Read more

Recommended Mainstream PC Configurations for the Wan Jia Aluminum Mini Case

Recommended Mainstream PC Configurations for the Wan Jia Aluminum Mini Case

Recently, some fans have shown interest in a compact mini case – the Wan Jia Aluminum Element, and they want us to propose several mainstream computer configuration solutions for this case. The budget for the computer host is around 5000-6000 yuan, suitable for gaming and light productivity needs, while pursuing cost-effectiveness. Wan Jia Aluminum Element … Read more

Assembling a Mini Computer with Ryzen 2nd Gen – No Graphics Card Needed!

Assembling a Mini Computer with Ryzen 2nd Gen - No Graphics Card Needed!

Ryzen has launched two second-generation mid-range processors, namely the Ryzen 3 2200G and Ryzen 5 2400G, both equipped with integrated graphics and strong performance, making them very suitable for DIY small cases. Here, I will share a super mini computer build after selecting some basic components. The processor is of course the Ryzen 3 2200G. … Read more