Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 1.89 KB

install_with_cmake_and_vcpkg.md

File metadata and controls

42 lines (29 loc) · 1.89 KB

Install on Windows and use CMake to build

  1. Get the right version
  2. Download and install Qt Creator with CMAKE (once)
  3. Checkout to branch CMAKE_attempts
  4. Put your version of the branch up-to-date
  5. Update the vcpkg submodule (once) (For Qt creator users)
  6. Bootstrap vcpkg
  7. open a new project on Qt creator by selectiung the CMakeLists.txt file in the repo

0. Get the right version

The hardest part about the installation is to realize that using the correct version really matters. For this installation you will need to:

  1. Install QtCreator 5.15 or higher
  2. Make sure you are including CMake in the installation

1. Download and install Qt Creator (here)

Use all defaults, up until the Qt Maintenance tool is started. Here, you will need to check two boxes:

    1. For the highest (stable) Qt version
    1. The following tools:

2. Checkout to branch CMAKE_attempts

Do so by running git checkout CMAKE_attempts

3. Put your version of the branch up-to-date

Do so by running the command: git pull

4. Update the vcpkg submodule

Do so by running the command: git submodule update --init

5. Bootstrap vcpkg

FRom the root of the repository enter the folder named vcpkg and double click on one of the 2 files named bootstrap-vcpkg (one is specifically for windows the othe works for any OS)

6. Open a project on Qtcreator using the CMakeLists.txt

Choose File -> Open File or Project and then select the file name CMakeLists.txt inside the repo. Configure the project as you see fit (possibly at least one configuration should be with MinGW). Qt should then be able to create your project.