qbs create-project [--blacklist <blacklist>] [--whitelist <whitelist>] [--flat]
Automatically generates Qbs project files from an arbitrary directory structure. You can filter the files to add to the project by blacklisting or whitelisting them. The command creates nested project files, unless you use the
This is a useful starting point when migrating from other build tools, such as qmake or CMake.
Note: Run this command from the project directory.
After generating the initial .qbs files, add the missing configuration variables and functions to them.
Ignores files whose names match the patterns specified by
<blacklist>. The list entries can contain wildcards and are separated by commas.
By default, no files are ignored.
Considers only files whose names match the patterns specified by
<whitelist>. The list entries can contain wildcards and are separated by commas.
By default, all files are considered.
Does not create nested project files, even if there are subdirectories and the top-level directory does not contain any files.
Displays help for the command.
.qbs files in the project directory when run from there:
© 2023 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.