Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Learn the Basics to using CMake
Rating: 4.2 out of 5(44 ratings)
849 students

Learn the Basics to using CMake

CMake Scripting Commands Variables Basics
Created byBona N.
Last updated 12/2023
English

What you'll learn

  • Learn how to properly install CMake to your computer
  • Learn the naming convention for CMake scripts
  • Learn the 3 basic CMake commands
  • Learn the fundamental commands for creating an organized build system

Course content

1 section7 lectures36m total length
  • Introduction to the Basics of CMake3:44

    An introduction from start to finish of what we'll be doing using CMake.

    You can follow along by downloading the "main_cpp", "add_cpp", and "add_h" provided by the "Resources" section.

    Due to an error with uploading C++ & Header files, the respective files will have to be renamed with the ".cpp"/".h" extension (Sorry for the inconvenience).

  • Installing CMake to your OS System1:35

    We will find where to download CMake from the internet. Then we will add CMake to our OS System, so we can use the "cmake" prompt in the command terminal.

  • Creating a Basic CMake Script2:40

    We will learn the naming conventions for CMake scripts and the 3 basic commands that are associated with a CMake Script.

  • Fundamental CMake Script commands8:13

    We will learn about CMake script commands that help us debug, create libraries, and search for files.

  • How to work with Variables in CMake Scripting2:39

    Learn how to use variables in CMake Scripts, this will help us change the location where the executable is saved.

  • Wrapping Up: Homework Assignment5:01

    3 Objectives for this Homework Assignment:

    1. Create two libraries (named: frogbook & math)

      • "frogbook" library should contain "frog.cpp"

      • "math" library should contain "add.cpp", "subtract.cpp", "divide.cpp", and "multiply.cpp"

    2. Locate two header files within the root CMake script

    3. Create two executables (named: frogger & calculator)

      • store both executables in the <root>/bin folder

      • Hint: CMAKE_CURRENT_SOURCE_DIR

  • Homework Walkthrough: Answer12:41

    I go through the answers for the assigned homework.

Requirements

  • No programming experience needed. All CMake concepts will be taught & shown through examples.
  • C++ experience may help in understanding, but not required.
  • Windows OS system.

Description

Learn the fundamental CMake script commands to create an organized system for your programming project.

CMake is a scripting language used to assist in organizing multiple source files within a project. CMake is a cross-platform building language, which means you can transfer this knowledge outside of this class. Although I am using C++ and a Windows OS system, the language functions the same for other languages and OS Systems.

In this class we will start from scratch with a "Hello World" example code. Then build it into a fully organize and professional looking build system. Source files will be given their respective files and the same will go for header (C++ related) files and the executable file.

I will provide files needed to follow along, if you are also using the C++ language and a Windows OS system. By following along, with the video it will help with remembering the commands provided in this video.

We will go through a total of 9 CMake script commands.

3 of them will be basic script commands that all CMake Scripts should contain, the other 6 will help in organizing our build system.

This course is provided for FREE as a way to introduce myself to Udemy community. I look forward to having you in my course thank you.

Who this course is for:

  • Beginner CMake users
  • Build System enthuisiasts