Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. CMake doesn't seem fully supported by Qt Creator
Forum Updated to NodeBB v4.3 + New Features

CMake doesn't seem fully supported by Qt Creator

Scheduled Pinned Locked Moved Unsolved Qt 6
3 Posts 2 Posters 456 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • StokestackS Offline
    StokestackS Offline
    Stokestack
    wrote on last edited by Stokestack
    #1

    Hi all.

    I just downloaded Qt 6.1.2 and went to create a new "subdirs" project in Qt Creator, but it still insists on using QMake. I thought CMake was the native project format in Qt 6.

    Is there still no support for managing CMake-based projects in the IDE?

    Thanks!

    1 Reply Last reply
    0
    • VRoninV Offline
      VRoninV Offline
      VRonin
      wrote on last edited by
      #2

      CMake projects are not managed directly by Qt Creator, Qt Creator uses the CMake file API to ask CMake infos about your project. CMake project files then require the user to write them manually rather than have QtC create them (for a subdir project it's straightforward and it's just about using add_subdirectory). If you start a project from scratch (i.e. don't add a subproject to an existing one) you can chose CMake as build system and a default project will be populated

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      1 Reply Last reply
      1
      • StokestackS Offline
        StokestackS Offline
        Stokestack
        wrote on last edited by Stokestack
        #3

        Thanks for that reply. That doesn't quite make sense though. Why can you create a single-level project and have Creator build you a CMakeLists file then?

        With CMake becoming the native build system, I would expect Qt Creator to offer the same functionality it does today. That means (among other things) letting you create a "subdirs" project, which would add add_subdirectory to CMakeLists. Why doesn't it simply do that? What happens when QMake goes away?

        I don't see how Qt can competitively proceed into the future if its IDE doesn't even let you manage your project. Furthermore, it's a huge missed opportunity to clarify CMake usage and expose its many functions in an orderly UI.

        1 Reply Last reply
        1

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved