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?
_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to