/hello-cmake-qt-github_action

Demonstrative example of building Qt with CMake and GitHub Actions

Primary LanguageCMakeMIT LicenseMIT

hello-cmake-qt-github_action

Demonstrative example of building Qt with CMake and GitHub Actions

Requirements

  • CMake
  • C++ compiler of your choice

Repository layout

.                   - Root directory
.github/workflows   - GitHub Actions workflows

Build instructions

The project is built automatically using GitHub Actions on push and pull request. The workflow is defined at .github/workflows/cmake.yml, and configured to build using the latest Windows GitHub Runned (windows-latest) using CMake.

Manual build

Once required tools are installed, this minimum reproducible project can be built via command-line using the following commands:

  1. mkdir build
  2. cd build
  3. cmake -G "MinGW Makefiles" ..
  4. cmake --build .

The project should now be built in a location appropriate to your C++ compiler. For example, the build location for MinGW should be ./build/hello-cmake-qt.exe.

Troubleshooting

Ensure that your C++ compiler and CMake are in your PATH environment variable so that the executables are visible.