GithubHelp home page GithubHelp logo

provotorov-a-a / qt_cmake_project Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 42 KB

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

CMake 10.57% Shell 76.07% C++ 13.36%
mingw64 qt5 cmake cpp

qt_cmake_project's Introduction

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.

qt_cmake_project's People

Contributors

provotorov-a-a avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.