QBuildSystem
June 13, 2022 ยท View on GitHub
qmake include files and bash scripts in order to build complex projects easy to handle
Table of contents
Motivation
TOC
Building large projects with external dependencies is complex. Qt has its build system and supports both qmake and cmake, but none are easy to be used with complex projects with multiple subprojects and external project dependencies. In order to ease the process of creating these projects, you can find all over the Targoman repository we have made some qmake pri files and shell scripts.
Sample projects
TOC Sample projects can be found in QBuildSystem-sampleLibrary and QBuildSystem-sampleApp repositories.
Features
- supports subprojects
- auto build of dependencies based on git submodules
- library linking
- versioning support
- multiple templates for
- application
- libraries (static/dynamic)
- tests
- unittest
- examples
- installation
- configuration export
Setup
- Add QBuildSystem as your project submodule
$ git submodule add https://github.com/Targoman/QBuildSystem.git 3rdParty/QBuildSystem
- Create a file named
.qmake.confat top folder of your project
$ cat <<EOF > .qmake.conf
BASE_PROJECT_PATH=\$\$PWD
QBUILD_PATH=\$\$BASE_PROJECT_PATH/3rdParty/QBuildSystem/
EOF
Follow guides on sample projects to create your project
License
QBuildSystem has been published under the terms of Modified BSD License