QtCreator 3.0.1: Additional Preprocessor Directives for whole project instead of single file
Qt Creator and other tools
1
Posts
1
Posters
2.3k
Views
1
Watching
-
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.