Basics of CMake: CMakeLists.txt

Basics of CMake: CMakeLists.txt

# File name: CMakeLists.txt # Set the minimum required CMake version to 3.15 cmake_minimum_required(VERSION 3.15) # Set the project name to MyProject, version number to 1.0 project(MyProject VERSION 1.0) # Set compilation options, set C++ standard to C++17 set(CMAKE_CXX_STANDARD 17) # Force the compiler to support the specified C++ standard (C++17 in this case), # … Read more

Day 12: Complete Guide to Lists in Python | Manipulating Data Collections Like Building Blocks

Day 12: Complete Guide to Lists in Python | Manipulating Data Collections Like Building Blocks

🌟 1. Lists: The Universal Storage Box for Data Programming Truth: Lists are the most widely used data structure in Python, capable of storing any type of data, like a mutable “magic array”! Life Scenario Analogy: List → Train carriages (elements are passengers, who can get on and off at any time) Index → Seat … Read more

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

13 Essential Python Knowledge to Bookmark!

Python has ranked first multiple times in the popularity index PYPL for programming languages. Due to its code readability and simpler syntax, it is considered one of the easiest languages ever. The richness of various AI and machine learning libraries such as NumPy, Pandas, and TensorFlow is one of the core demands of Python. If … Read more

CMake Variables: Master Common Variables and Environment Variables

CMake Variables: Master Common Variables and Environment Variables

1. CMake Variable Reference and Definition (1) Use ${} to reference variables. In statements like IF, use the variable name directly without ${}. (2) Custom variables can be defined implicitly and explicitly. For example, the PROJECT command implicitly defines <projectname>_BINARY_DIR and <projectname>_SOURCE_DIR. Explicitly defining variables can be done using the SET command. For example: SET(HELLO_SRC … Read more