A template for Qt development with CMake
Once cloned, customize the template by:
- Changing the project name from
Templateto something else inCMakeLists.txt - Changing the display name of your app in
src/main.cpp - Customizing the app icon at
resources/icon.png(seeCautionbelow) - Changing this
README.mdto reflect your project
Note
It's illegal to remove the original license, as per its conditions. Add your own license along it, not instead of it
For further platform customization, you can:
- Modify
resources/platform/linux/template.desktopto better reflect your application. It can pull in CMake variables enclosed in@s, just as any file that hastemplateas a basename - Customize the
.dmgimage background and structure by modifyingdmg-background.pngandtemplate.jsonatresources/platform/macos(seeCautionbelow)
Caution
Unless you've introduced your own changes to backing .cmake files and CI pipeline, do NOT change the filenames, paths, image dimensions and directory structure of anything inside resources/. This is especially relevant for images - modifying their contents is fine, but please pay extra attention to keeping dimensions intact
As your project grows, you will have more source files, headers and resources in it.
All source files ending in .cpp inside src/ are already globbed by CMake, but feel free to add more globbing patterns if needed
Header paths can be added to target_include_directories in CMakeLists.txt as needed
Resources are intended to be added to resources/ and resources/qresource.qrc for usage in source. See qresource.qrc comments for usage
This project is distributed under the MIT License.
See LICENSE for permissions, conditions and limitations.