← 返回命令列表

Linux command

sfdk-cmake 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Run CMake in build environment

sfdk cmake [cmake_args]

Configure with Release build type

sfdk cmake -DCMAKE_BUILD_TYPE=Release

Configure and build with make

sfdk cmake [cmake_args] && sfdk make

Show help

sfdk cmake --help

说明

sfdk cmake runs CMake inside the Sailfish OS build environment with the correct toolchain configuration. Together with sfdk make, it allows running rpmbuild in a way that just the corresponding part of the %build section of the SPEC file is executed. Part of Sailfish SDK. Native build system support is available for projects that use either qmake or CMake.

FAQ

What is the sfdk-cmake command used for?

sfdk cmake runs CMake inside the Sailfish OS build environment with the correct toolchain configuration. Together with sfdk make, it allows running rpmbuild in a way that just the corresponding part of the %build section of the SPEC file is executed. Part of Sailfish SDK. Native build system support is available for projects that use either qmake or CMake.

How do I run a basic sfdk-cmake example?

Run `sfdk cmake [cmake_args]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

Where can I find more sfdk-cmake examples?

This page includes 4 examples for sfdk-cmake, plus related commands for nearby Linux tasks.