Skip to content

This is a minimal template project to build a QtQuick / C++ application in a modern build and package environment. For now, only Linux is supported, but more platforms might be added when a contributer requires them. For Linux, the application is then packaged as a portable AppImage.

License

Notifications You must be signed in to change notification settings

alexg-k/CppBuildPackQt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CppBuildPackQt

This is a minimal template project to build a QtQuick / C++ application in a modern build and package environment. For now, only Linux is supported, but more platforms might be added when a contributer requires them. For Linux, the application is then packaged as a portable AppImage.

Build and package

Linux

To build and package, simply run in the project root directory:

  1. cmake -S . -B build
  2. cmake --build build --target all
  3. NO_STRIP=true DESTDIR=${PWD}/build/AppDir/ cmake --build build --target install

For more realistic projects the list fo dependencies will become more complex, so may want to setup a ci/cd pipeline or create a docker image to build and package in. This simple example can be built with an existing docker image:

  1. docker run --rm -v ${PWD}:/project danger89/cmake:latest sh -c "cd /project && cmake -S . -B build_docker && cmake --build build_docker --target all && NO_STRIP=true DESTDIR=/project/build/AppDir/ cmake --build build_docker --target install"

A ci/cd workflow for github is also added for the example.

About

This is a minimal template project to build a QtQuick / C++ application in a modern build and package environment. For now, only Linux is supported, but more platforms might be added when a contributer requires them. For Linux, the application is then packaged as a portable AppImage.

Resources

License

Stars

Watchers

Forks

Packages

No packages published