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. Qt creator/Cmake - How to add/customize default parameters in CMakeList.txt automatically
Forum Updated to NodeBB v4.3 + New Features

Qt creator/Cmake - How to add/customize default parameters in CMakeList.txt automatically

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
1 Posts 1 Posters 630 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.
  • H Offline
    H Offline
    Henryez
    wrote on last edited by
    #1

    i have been trying for a real long time to modify Cmake options in Qtcreator in a way that allowed me to change the starting variables and parameters in the auto-generated CMakelists.txt, i saw some posts saying that only qtmake files are automatically added in the projects window, but i also saw that there is a new c++ plugin that actually adds ".h/.hpp" files to a "HEADER" library automatically, i wonder if is not possible to do that with ".c/.cpp" source files or at least change the default "MakeList.txt" to add them automatically, i know this may be a lazy work, but that's why i entered this area, optimize and automate XD

    file, so every project started would have those attributes

    i read that you could change the Cmake configurations, but i didn't see where they were being created

    i also saw i could try to make a "custom step" in the build, but i couldn't figure out how to use the cmake variables to do this.

    my only goal is to make from this: starting alt text

    to this, everytime i start a project: My humble goal
    (even though i heard using "GLOB" isn't a good programming pratice so i'm open to suggestions)

    here's the cmake configuration and build: CMake config, Build

    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