
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).
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.
We will learn the naming conventions for CMake scripts and the 3 basic commands that are associated with a CMake Script.
We will learn about CMake script commands that help us debug, create libraries, and search for files.
Learn how to use variables in CMake Scripts, this will help us change the location where the executable is saved.
3 Objectives for this Homework Assignment:
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"
Locate two header files within the root CMake script
Create two executables (named: frogger & calculator)
store both executables in the <root>/bin folder
Hint: CMAKE_CURRENT_SOURCE_DIR
I go through the answers for the assigned homework.
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.