CMake Masterclass for Beginners
Learn the most powerful and recommended way of building the C++ projects
Welcome Message
FREE PREVIEWBuilding a C++ Project using G++
Need of Build Systems
Need of Meta Build System
Sub-directories
Managing Header Files
CMake way of Including the Header Files
Target Properties and Propagation Scopes
Propagation of Target Properties
Normal Variables
Quoted and Unquoted Arguments
Manipulating Variables
Lists and Strings
If-Else Command
Looping Commands
Functions
Optional Arguments of Functions
Scopes
Macros
Setting a Cache Variable
Modification of Cache Variables
Cache Variables: CMAKE_VERSION, CMAKE_PROJECT_NAME, CMAKE_GENERATOR
Requirements for Installing/Exporting Package
Installation Process of Packages
Exporting a Package
Using a 3rd party Package in our Project
Commenting in CMake
Using CMake variables in CPP files
Running CMakeLists.txt in Script mode
Debug/Release Mode
Problems with Linking External Libraries
Installation of OpenCV (External Package)
Using OpenCV in a Project
Using Pkg-Config to link GTK3 Library
find_library() and find_path() commands
Writing a Find* module
FindGTK3.cmake
Milan Yadav
Take your development career to new heights by mastering the CMake Tool