QMLTemplate is template for QML application
+---cmake
| | Git.cmake # CMake contains Git information
| | Qt5Configuration.cmake # CMake contains Qt information
| \
|---config # Json config
|---deploy
| | docker # Dockerfile
| | jenkins # Jenkinsfile
| | linux
| | windows
| \
|---libs # Submodule or 3rdParty
|---resources # Image, icon, font, ...
|---src # Main source
|---test # Test module
|---tools
|---translations # Qt translation .ts file
|---UI # QML file
qmake ../qmltemplate.pro -spec linux-g++ CONFIG+=debug CONFIG+=qml_debug #Linux
qmake ../qmltemplate.pro -spec win32-g++ CONFIG+=debug CONFIG+=qml_debug #Windows
make -j
cmake -DQt5_DIR=$$PWD/Qt/5.15.2/gcc_64/lib/cmake/Qt5 -DQML_BUILD_TESTING=ON -DCMAKE_BUILD_TYPE=Debug ..
make -j
cmake -DQt5_DIR=$$PWD/Qt/5.15.2/gcc_64/lib/cmake/Qt5 -DQML_BUILD_TESTING=ON -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=g++ -DCMAKE_CC_COMPILER=gcc -DCMAKE_MAKE_PROGRAM=mingw32-make -G "MinGW Makefiles" ..
make -j
# Config Xauth (If necessary)
xauth list # choose port on bottom and set export DISPLAY=${bottom_result}
xhost + # Disable access control
sudo xhost +local:docker
xauth generate ${DISPLAY} . trusted
# Docker run
docker build --file ./deploy/docker/Dockerfile -t template-qml-docker:1.0 .
docker run -it --name qml-docker --network=host --env DISPLAY=$DISPLAY --privileged --volume="$HOME/.Xauthority:/root/.Xauthority:rw" -v /tmp/.X11-unix:/tmp/.X11-unix --rm template-qml-docker:1.0 /bin/bash