Skip to content

Andrew9317/qt-cmake-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

qt-cmake-template

A Qt5/6 CMake quickstart template.

It's extremely easy to setup. All you need to do is add your Qt installation as an environment variable (this is required for Windows. Linux only needs this if you do not use standard install location.) and change the Major Version CMAKE variable to the Qt major version.

For Qt5 create an environment variable called Qt5_HOME that points to your Qt5 installation 
and change the QT_MAJOR_VERSION to 5 in the CMakeLists.txt file.

For Qt6 create an environment variable called Qt6_HOME that points to your Qt6 installation 
and change the QT_MAJOR_VERSION to 6 in the CMakeLists.txt file.

For example:

Qt5_HOME = C:\Users\Andrew\Documents\Qt\5.15.2\msvc2019_64
Qt6_HOME = C:\Users\Andrew\Documents\Qt\6.0.1\msvc2019_64

About

Basic Qt template project using CMake

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published