CMake Build Tool
provides the native developer a full-featured, convenient, and powerful workflow for CMake-based projects in Codearts.
Loading a CMake Project
When the IDE detects that the opened project is a CMake project, the IDE automatically performs the following operations::
Multiple build types
Debugging the CMake Project
Open main.cpp and place a breakpoint on the line, std::cout, and click the debug icon.
Running the CMake Project
Run the launch.json file
Right-click to run executable file
Build the CMake Project
You can build from either of the following channels:
Open the command panel and run the CMake Build Tool: CMake Targets command
Click on the Build menu
Click the build icon.
Build panel
After the build, the build logs are displayed on the right of the build panel.
Multiple generator types
The CMake Build Tool provides two generator types for CMake projects: ninja and make. When the IDE builds a project, the ninja generator is used by default.
The CodeArts IDE for C/C++ provides tools required for building and debugging CMake projects. Users can directly build and debug CMake projects without manually configuring related environment variables.
The CMake, MinGW, and ninja tools are built in the .codearts directory of the user directory. By default, the CMake Build Tool extension preferentially reads the built-in tool path.