Nios® V Processor Software Developer Handbook

ID 743810
Date 5/26/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

13.2.3.2. cmake

CMake is the open-source utility tool that manages the build process using CMakeLists.txt, generated from from the niosv-app and niosv-bsp utilities.

CMake uses the CMakeLists.txt file to generate the build file, used to build main.elf and libbsp.a. The setting can be changed via setting the CMake argument -G, --generator. Nios V software build tools are based on Unix Makefile generator.

Example: cmake -S software/app -G "Unix Makefiles" -B software/app/build

CMake supports out-of-place/out-of-source builds in which build files need not be in the same place as source files. Build directory can be specified to be any arbitrary directory and it does not require to be in the same folder as CMakeLists.txt.