Skip to content

HOWTO: Use Qt Creator to Open CMakeLists.txt directly (will generate proper project files) #5

Open
@district10

Description

@district10
Owner

Linux

1. Use qt-creator to Open CMakeLists.txt

Use qt-creator to open CMakeLists.txt

2. Set Project Output Directory

Output dir

3. Run CMake

Unix Generator (qt4)? It generates a .cbp project (CodeBlocks Project) actually.

Run CMake

4. Build & Run

Build & Run

You can also/actually use code blocks to open this project.

Activity

district10

district10 commented on Jul 12, 2016

@district10
OwnerAuthor

Windows

1

Downloaded Qt5.6 for windows VS2015 from http://mirrors.ustc.edu.cn/qtproject/official_releases/qt/5.6/5.6.0/qt-opensource-windows-x86-msvc2015_64-5.6.0.exe.

2

Install it and then goto C:\Qt\VS2015x64\Qt5.6.0\Tools\QtCreator\bin to open qtcreator.exe:

open qtcreator.exe

In qt creator, hit Ctrl+o, to open a CMakeLists.txt:

open CMakeLists.txt

3

Configure it.

configure it

4

cmake it:

cmake it

Run it:

run it

changed the title [-]HOWTO: Use Qt creator to Open CMakeLists.txt directly (will generate proper project files)[/-] [+]HOWTO: Use Qt Creator to Open CMakeLists.txt directly (will generate proper project files)[/+] on Jul 15, 2016
district10

district10 commented on Jan 10, 2017

@district10
OwnerAuthor

You should configure your cmake properly in advance.

district10

district10 commented on Jan 12, 2017

@district10
OwnerAuthor

Sadly, seems not work on Ubuntu (or maybe, not work with newer Qt Creator?).

Jeetsinghji

Jeetsinghji commented on Feb 21, 2018

@Jeetsinghji

cmake-import-error

Have anyone encountered this situation? It seems that it can't find one of CMake variable while generating Qt project. Any help will be appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @district10@Jeetsinghji

        Issue actions

          HOWTO: Use Qt Creator to Open CMakeLists.txt directly (will generate proper project files) · Issue #5 · district10/cmake-templates