Skip to content

Template project that may be used as a skeleton for small test qt-projects .

Notifications You must be signed in to change notification settings

Provotorov-A-A/qt_cmake_project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 

Repository files navigation

qt_cmake_project

Description

Template for C++ project that uses CMake and Qt. Project contains shell script to ease project building process. Template may be used as skeleton for fast prototyping purposes.

Requirements

You should already have in your system:

  • installed cmake program;
  • installed Qt files (headers and libraries);
  • g++ compiler.

Tested

Project successfully tested with MSYS2 (MinGW64) environment.

Steps to build project

  1. Create your project directory.

    mkdir -p ~/projects/my_qt_project

    cd ~/projects/my_qt_project

  2. Clone project from repository. Note a point in the end of command.

    git clone https://github.com/Provotorov-A-A/qt_cmake_project.git .

  3. Remove remote repository if it's not needed.

    git remote remove origin

  4. Rename project name in ./CMakeLists.txt (line with project command). Note, that it's required to set project name the same as it's directory name.

    That line will be: project(my_qt_project LANGUAGES CXX)

  5. Run help script with command config to confige your CMake project.

    ./scripts/make.sh config

  6. Run help script with command build

    ./scripts/make.sh build

  7. Run help script with command run

    ./scripts/make.sh run

Notes

  1. You can also use help script to execute clean and install targets. Use help:

    ./scripts/make.sh --help

  2. You can add or change default environment variables (add cmake path for example) in ./scripts/set_env.sh file that will be executed before any command with ./scripts/make.sh help file.

About

Template project that may be used as a skeleton for small test qt-projects .

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published