Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8238727
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T19:54:45+00:00 2026-06-07T19:54:45+00:00

I started trying to convert a project to use CMake so that I could

  • 0

I started trying to convert a project to use CMake so that I could import the project into QtCreator to make use of the QtCreator IDE for this straight C code. This worked pretty nicely as far as giving me auto completions, code diving, etc etc.

I have had a bit of a time getting CMake to build the code as I expected, mostly because it was the first time I have been using it. I recently discovered that there is a cmake-gui that you can point at your source and it will show you the CMake variables and such. What is the proper way to actually use cmake-gui within QtCreator? When I just manually made my CMakelists.txt files within my project, it was enough to get the project in there. Should I just run Cmake-gui using locator and point it to those files? Should I keep the same build directory in cmake-gui that was created from QtCreator? Any tutorial links or guidance apprecaited – didnt find a whole lot googling.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T19:54:46+00:00Added an answer on June 7, 2026 at 7:54 pm

    The way I use cmake-gui with QtCreator is this:

    1. Create a build directory and configure it with cmake-gui, like:

      cmake/project$ mkdir build
      cmake/project$ cd build
      cmake/project/build$ cmake-gui ..
      
    2. Open the CMakeLists.txt file in QtCreator, and set the build path to where you did the configuration:

      QtCreator with CMake-GUI

    3. Let QtCreator run the configuration by clicking “Run CMake”, it will use the values you configured with cmake-gui in step 1:

      QtCreator with CMake-GUI step 2

    4. You are done 🙂

    5. When you need to reconfigure the CMake build, just fire up the command line, navigate to the build directory and re-run cmake-gui.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I started by trying to add a .toggle() to this code so that the
i'm just started dev-ing app for wp7 and I'm trying to convert a string
this is my first post on this website, Anyway, I recently started trying to
I'm just digging a bit into Haskell and I started by trying to compute
Im trying to get started with app development. Isnt this the corrent JDK if
I am trying to convert my model-first project to code-first, as I can see
hey guys I just started trying to convert my query structure to PDO and
I am trying to get started with unit testing an app that uses Core
I have just started learning XNA. This is my first program that I am
I started looking into CSS more deeply and decided I would like to convert

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.