Build and Running
- On the menu bar, choose Build > Edit Configurations... to access the build configuration page. Click + to add a configuration option, as shown in Figure 1. (The configuration option marked with (default) in the list is the default one. To switch the default option to a custom option, select the custom option and click
.)
Table 1 Parameters on the Edit Configurations page Parameter/Icon
Description
Name
Custom configuration name. The default value is Debug.
Build type
Configuration type. The options are Debug and Release.
Toolchain
Toolchain configurator, which supports local build. For details about the configuration, see Toolchains.
CMake options
CMake option. The default value is -DCMAKE_BUILD_TYPE=Debug -DCMAKE_SKIP_RPATH=TRUE.
Build directory
Relative path of the build directory, which is relative to the project directory.
Build options
Build acceleration option.
Environment variables
Environment variable configuration, which can be performed before project build.
- Select one of the following build methods on the MindStudio IDE project page based on your actual application scenario. For details about how to switch the default configuration option, see 1.
- Choose and clear build configurations.
- Choose to use the default configurations for full build.
- Choose or click
on the toolbar to use the default configurations for incremental build.
- Click
in the upper left corner of the project page to show the menu bar. On the top menu bar, choose or click the run configuration box on the toolbar to access the run configuration page. Then, click + in the upper left corner to create the CMake Application run configuration, as shown in Figure 3. Table 2 lists the run configuration options.Click OK. The build and run configuration preparation is complete.
Figure 2 Run configuration box
Table 2 Run configuration options Configuration Option
Description
Executable
Select the path of the build executable file to the last level.
Program arguments
Run parameters.
Working directory
Working directory. (If relative paths are configured in the project, select a relative working directory here, which defaults to the directory where the executable file is located.)
Environment variables
Enter the path of the dynamic load library (DLL).
You can also click
, and click
on the displayed page. Then, enter the path. - Click
in the upper left corner of the project page. On the menu bar that is displayed, choose to run the project using the saved configuration.If the run configuration is not saved, the run configuration page will be displayed after you perform the current operation. For details about how to fill in the configuration, see 3. Click Apply to apply the configuration, and then click Run to run the configuration.

