Visible to Intel only — GUID: kay1653052535785
Ixiasoft
Visible to Intel only — GUID: kay1653052535785
Ixiasoft
15.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 processor software build tools are based on Unix Makefile generator. The default build type on single-configuration generator (CMAKE_BUILD_TYPE) is Debug. You can change the build type to Release for production.
Example: cmake -S software/app -G "Unix Makefiles" -DCMAKE_BUILD_TYPE="Debug" -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.