Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
district10 opened this issue Jul 6, 2016 · 4 comments

Comments

@district10
Copy link
Owner

district10 commented Jul 6, 2016

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.

@district10
Copy link
Owner Author

district10 commented Jul 12, 2016

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

@district10 district10 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) Jul 15, 2016
@district10
Copy link
Owner Author

You should configure your cmake properly in advance.

@district10
Copy link
Owner Author

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

@Jeetsinghji
Copy link

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants