Compilation
Create a build folder :
mkdir build
- Move to the created folder :
cd build
- Create the
MakeFile
via cmake :
cmake ../src
- Compile the code to generate the executable:
make
or make -j n
where n
is the number of cores to use for the compilation
-
A folder bin will be created at the same level as the build directory.
-
When add some new files to the project involke cmake again :
cmake ../src