On Friday 31 August 2007 06:25, Egon Kocjan wrote: > 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?
You want CMAKE_CURRENT_SOURCE_DIR: http://www.cmake.org/Wiki/CMake_Useful_Variables#Locations > 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? Yes. Bye Alex _______________________________________________ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake