Mkcmp

6
Presentation on Make and CMake Balpreet Kaur Guru Nanak Dev Engineering College [email protected] September 25, 2014 Balpreet Kaur (GNDEC) Make and CMake September 25, 2014 1/6

Transcript of Mkcmp

Presentation on Make and CMake

Balpreet Kaur

Guru Nanak Dev Engineering College

[email protected]

September 25, 2014

Balpreet Kaur (GNDEC) Make and CMake September 25, 2014 1 / 6

Overview

1 MakeMake Example

2 CMake

Balpreet Kaur (GNDEC) Make and CMake September 25, 2014 2 / 6

Brief Description about Make and Cmake

Make is a tool that controls the generation of executables and othernon-source files of a program from the program ’s source files.

Cmake stands for cross-platform make. Cmake recognises which compilersto use for a given of source.Cmake invokes the right sequence ofcommands for each type of target.

Balpreet Kaur (GNDEC) Make and CMake September 25, 2014 3 / 6

Difference Between Make and CMake

Make

1 It doesn’t supports multiplegenerators like Xcode, Eclipse,Visual Studio, etc..

2 The language used to writeMakefile files is not easier tounderstand.

3 It only rely on Make to build theproject.

4 It doesn’t support cross platformdiscovery of system libraries.

5 It is not able to do automaticdiscovery and configuration ofthe toolchain.

CMake

1 It supports multiple generatorslike Xcode, Eclipse, VisualStudio, etc..

2 The language used to writeCMakeLists.txt files is readableand easier to understand

3 It doesnt only rely on Make tobuild the project.

4 Cross platform discovery ofsystem libraries.

5 Automatic discovery andconfiguration of the toolchain.

Balpreet Kaur (GNDEC) Make and CMake September 25, 2014 4 / 6

Difference Between Make and CMake

Make

1 It is not easier to compile yourfiles into a shared library in aplatform.

2 The build process has one stepif you use a Makefile, namelytyping make at the commandline.

CMake

1 Easier to compile your files intoa shared library in a platform,and in general easier to use thanmake.

2 For CMake, there are two steps:First, you need to setup yourbuild environment by typingcmake.Second, you perform theactual build on selected buildsystem by typing make.

Balpreet Kaur (GNDEC) Make and CMake September 25, 2014 5 / 6

Thanks

Balpreet Kaur (GNDEC) Make and CMake September 25, 2014 6 / 6