QTCreator doesn't parse CMake defined ifdef's
-
wrote on 8 Apr 2012, 19:54 last edited by
Hi.
I'm working on a project which has some of it's defined defined in CMakelists as definitions.
This causes the files inside the defines not be parsed by QTC, therefore any advanced functionality does not work.
Any idea how to make it recognize the define?
P.S.:
Seems this a known issue:
https://bugreports.qt-project.org/browse/QTCREATORBUG-3922Any work-around other then patching CMake or QTC?
Thanks in advance!
-
wrote on 9 Apr 2012, 18:10 last edited by
Any idea?
-
wrote on 10 Apr 2012, 08:43 last edited by
You could convert your code to qmake which is better supported or improve the CMake parser.
Note that it is enough to have a skeleton qmake project that Creator can parse and then continue to use cmake for the actual building by changing the build configuration.
-
wrote on 10 Apr 2012, 08:53 last edited by
Hi.
Any tools to convert the cmake to qmake?
Thanks.
-
wrote on 10 Apr 2012, 08:55 last edited by
No, but there is always "qmake -project" which will examine the files in your directory and produce a skeleton .pro-file.
1/5