Enrol to start learning
Reading is open to everyone. Enrolling is free, and it is what unlocks the audio lessons, practice tests and progress tracking.
8.3.5. Make and CMake (C/C++)
This section
Practice test
12 questions on this section. Wrong answers show you what to read again.
Sign up to take itWhole chapter
Revision test
Mixed questions from across the chapter. Your answers get marked.
Sign up to take itQuick
Flashcard drill
4 cards from this lesson. Good the night before a test.
Try these first
- 1.
What is the purpose of a Makefile?
Hint
Think about how a recipe outlines steps for cooking.
- 2.
What is CMake used for?
Hint
Consider cross-platform development needs.
- 3.
What is the primary function of the Make tool?
- To edit source code
- To automate building software
- To manage dependencies
Hint
Consider the role of automation in software development.
- 4.
CMake allows for cross-platform builds.
- True
- False
Hint
Think about project flexibility when working on different operating systems.
- 5.
Develop a Makefile for a small C++ project that includes multiple source files and a library dependency.
Hint
Use the format of defining targets and their dependencies.
- 6.
Write a CMakeLists.txt file for a C++ application that uses a third-party library. Explain how the dependency management works.
Hint
Remember to specify include directories and link libraries.
Exercises
Total Questions
2
Estimated Time
4 min
Passing Score
70%
Instructions
- Read each question carefully
- You can use hints if you need help
- Complete all questions before submitting
4 more questions available
Enrol freeQuiz
Total Questions
2
Estimated Time
4 min
Passing Score
70%
Instructions
- Read each question carefully
- You can use hints if you need help
- Complete all questions before submitting
2 more questions available
Enrol freeChallenge Problems
Total Questions
2
Estimated Time
4 min
Passing Score
70%
Instructions
- Read each question carefully
- You can use hints if you need help
- Complete all questions before submitting