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 3.0.1: Additional Preprocessor Directives for whole project instead of single file
Forum Updated to NodeBB v4.3 + New Features

QtCreator 3.0.1: Additional Preprocessor Directives for whole project instead of single file

Scheduled Pinned Locked Moved Qt Creator and other tools
1 Posts 1 Posters 2.3k 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.
  • S Offline
    S Offline
    scoido
    wrote on last edited by
    #1

    How can I set a preprocessor directive for the whole project in Qt? For a single file I can choose "Tools -> C++ -> Additional Preprocessor Directives..." and set something like "#define MYFEATURE 1". But I don't find a way to set such a definition for the whole project.

    I have to use cmake and can't use qmake. We are a group of several hundred programmers, most of them using eclipse or netbeans (which, by the way, offer this option), therefore I can't change some globally used files like CMakeList.txt. I need a local file to store this information.

    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