[CMake] qmake $$PWD -> cmake?

Egon Kocjan egon at krul.ath.cx
Fri Aug 31 06:25:04 EDT 2007


Hi,

I have a qmake based project files, which use (undocumented) $$PWD 
variable: current directory of the project file, also works for 
includes! Is this possible with cmake?

qmake example:

a/a.cpp:
-- cpp source file

a/a.pri:
SOURCES += $$PWD/a.cpp

b/b.pro:
TEMPLATE = app
include(../a/a.pri)

When building b, a.cpp from directory a/ will be added to b's source 
list with the correct path.

Thanks,
Egon Kocjan

PS.: just a quick question - does cmake support automatic rebuilding of 
vs and xcode project files, when CMakeLists.txt changes?


More information about the CMake mailing list