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. QtCreator 15: CMake Folder property
Forum Updated to NodeBB v4.3 + New Features

QtCreator 15: CMake Folder property

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
3 Posts 2 Posters 366 Views
  • 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.
  • _ Offline
    _ Offline
    _Rayman_
    wrote on last edited by _Rayman_
    #1

    Hello Everyone,

    the release notes of QtCreator 15 state:

    "We added support for the FOLDER property of targets that can be used to change the display in the Projects view."

    Has anybody a small example of a CMakeLists.txt file that makes use of the new CMake Folder property?
    Maybe having one build target and several source files separated into Folders that are reflected in QtCreator projects view?

    As far as I see, this is faily new and I didn't find any examples online.

    Thanks,
    Stefan

    jsulmJ 1 Reply Last reply
    0
    • _ _Rayman_

      Hello Everyone,

      the release notes of QtCreator 15 state:

      "We added support for the FOLDER property of targets that can be used to change the display in the Projects view."

      Has anybody a small example of a CMakeLists.txt file that makes use of the new CMake Folder property?
      Maybe having one build target and several source files separated into Folders that are reflected in QtCreator projects view?

      As far as I see, this is faily new and I didn't find any examples online.

      Thanks,
      Stefan

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @_Rayman_ Here is an example: https://stackoverflow.com/questions/25782256/set-solution-folder-property-in-cmake-for-3rd-party-library

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      _ 1 Reply Last reply
      0
      • jsulmJ jsulm

        @_Rayman_ Here is an example: https://stackoverflow.com/questions/25782256/set-solution-folder-property-in-cmake-for-3rd-party-library

        _ Offline
        _ Offline
        _Rayman_
        wrote on last edited by
        #3

        @jsulm Thanks!

        I think I just got this feature wrong. As far as I understand now, this is used if you have multiple build targets where each of the targets is organized in it's own folder.

        I usually have only one build target (e.g. "Compile these 10 source .cpp/.h files into one exectuable") and I want to structure my source-files into IDE-folders. This is being done using CMAKE source_group and works in Qt Creator.

        1 Reply Last reply
        0
        • _ _Rayman_ has marked this topic as solved on

        • Login

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