CLion Tutorial – CMakeLists.txt in CLion

CLion Tutorial - CMakeLists.txt in CLion

CMakeLists.txt file contains a set of instructions and descriptions that define the source files and targets (executable files, libraries, or both) of a project. When you create a new project, CLion automatically generates a CMakeLists.txt file and places it in the project root directory. To open the project, you can point CLion to the top-level … Read more

Automatically Download and Install Third-Party Libraries with CMake

Automatically Download and Install Third-Party Libraries with CMake

* GreatSQL Community Original Content Cannot Be Used Without Authorization, Please Contact the Editor for Reprinting and Indicate the Source. Introduction In daily development, it is inevitable to use third-party libraries or to store some libraries separately. If the libraries are placed together with the code, it will inevitably lead to a large project. At … Read more

Everything You Need to Know About Using CMake in Android

Everything You Need to Know About Using CMake in Android

Today’s Tech News Recently, Google held its hardware launch event in New York, themed “Made By Google,” unveiling a series of new hardware products including the Pixel phone, a 2-in-1 tablet, and speakers. Over the past month, the four major tech giants in the U.S., including Google, Microsoft, Apple, and Amazon, have successively released their … Read more

CLion Tutorial – CMake Performance Analysis

CLion Tutorial - CMake Performance Analysis

Through CMake performance analysis, you can identify the most time-consuming operations when reloading projects and optimize your CMake scripts when necessary. Performance analysis is applicable to CMake version 3.18 and above. CMake stores results in Google’s tracing event format. CLion’s integrated features can help you run traces and visualize the results. Performance analysis is not … 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

CMake Configuration Files in CLion

CMake Configuration Files in CLion

The settings required to build a CMake project are consolidated into a CMake configuration file. It includes the toolchain and build type, as well as CMake options such as generators and environment variables. You can configure multiple configuration files for a project to build targets with different compilers or different settings. To set up a … 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