Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Project tree in Qt Creator (cmake project)
Forum Updated to NodeBB v4.3 + New Features

Project tree in Qt Creator (cmake project)

Scheduled Pinned Locked Moved Qt Creator and other tools
5 Posts 3 Posters 5.5k 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.
  • J Offline
    J Offline
    jlesquembre
    wrote on 22 Jul 2011, 10:19 last edited by
    #1

    Hi,

    I'm using Qt Creator and cmake (2.8.4) to build a project. I have problems configuring Qt Creator.

    1.- Project has a .css file, but I don't know how list this file in the project tree. In CMakeLists.txt I have a line (add_custom_target) for this file, and the file is included when I compile the project, but doesn't appear in Qt Creator's project tree.

    2.- In the project tree I can see /usr/share/cmake/Modules. Any idea how can I make it disappear?

    A picture of my project tree:
    !http://i56.tinypic.com/2wq49d4.png(project tree)!

    How can I see the folder css with my .css files and hide the ../../usr folder?

    1 Reply Last reply
    0
    • F Offline
      F Offline
      Franzk
      wrote on 22 Jul 2011, 11:54 last edited by
      #2

      2: You can't because CMake needs those scripts to be useful. Creator cannot (or should not even try to) reliably separate handmade scripts from 'system' scripts.

      "Horse sense is the thing a horse has which keeps it from betting on people." -- W.C. Fields

      http://www.catb.org/~esr/faqs/smart-questions.html

      1 Reply Last reply
      0
      • T Offline
        T Offline
        tobias.hunger
        wrote on 17 Aug 2011, 06:57 last edited by
        #3

        Cmake is limited with regards to providing all files that belong to a project to a IDE. Non-code files tend to get lost and quite some headers. Sorry, there is little we can do about that.

        CMake does consider its own files as part of a project. That is why you see them... I am not aware of any way to suppress that, short of patching cmake that is.

        1 Reply Last reply
        0
        • F Offline
          F Offline
          Franzk
          wrote on 17 Aug 2011, 07:03 last edited by
          #4

          [quote author="Tobias Hunger" date="1313564234"]Cmake is limited with regards to providing all files that belong to a project to a IDE. Non-code files tend to get lost and quite some headers. Sorry, there is little we can do about that.[/quote]What we (the community) can do about that is improve CMake on this specific part.

          [quote author="Tobias Hunger" date="1313564234"]CMake does consider its own files as part of a project. That is why you see them... I am not aware of any way to suppress that, short of patching cmake that is.[/quote]So it's a CMake dev choice and patching CMake or requesting this specific behavior should happen there.

          "Horse sense is the thing a horse has which keeps it from betting on people." -- W.C. Fields

          http://www.catb.org/~esr/faqs/smart-questions.html

          1 Reply Last reply
          0
          • T Offline
            T Offline
            tobias.hunger
            wrote on 17 Aug 2011, 15:13 last edited by
            #5

            I think there was some work on the codeblocks cmake generator (which we also use). So maybe a newer version does work better already:-)

            1 Reply Last reply
            0

            • Login

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