Using CMake for Build
In this action, you build a cross-platform project with CMake.
Graphical Build
Add Build with CMake, when configuring build actions.
The parameters are described in the following table.
|
Parameter |
Description |
|---|---|
|
Action Name |
Name of a build action. It can be customized. |
|
Tool Version |
Select the CMake build tool version. |
|
Commands |
Configure the CMake commands. You can also use default commands. If you have special build requirements, enter your custom build script in the text box. |
Code-based Build
1 2 3 4 5 6 7 8 9 10 11 |
version: 2.0 # The value must be 2.0. steps: BUILD: - cmake: inputs: command: | # Create the build directory and switch to the build directory. mkdir build && cd build # Generate makefiles for the Unix platform and perform the build. cmake -G 'Unix Makefiles' ../ && make -j |
|
Parameter |
Type |
Description |
Mandatory |
Default Value |
|---|---|---|---|---|
|
command |
String |
Commands to be run. |
Yes |
None |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot