[cmake] current_dir

Sören Freudiger muffmolch at gmx.de
Wed Jan 16 08:30:46 EST 2008


Hi

Is there a way to find out in which directory I am?

 

We have this kind of structure:

////////////////////////////////////////////////////

/proj/source/package1/a.h

/proj/source/package1/a.h

/proj/source/package1/CMakePackage.txt

/proj/source/package2/b.h

/proj/source/package2/b.cpp

/proj/source/package2/CMakePackage.txt

/proj/source/tester/CMakeLists.txt

 

////////////////////////////////////////////////////

 “CMakePackage.txt”

SET(SUBDIRPATH /proj/source/package1)

GLOB cpp and h file in $ SUBDIRPATH




 

////////////////////////////////////////////////////

“CMakeLists.txt”




INCLUDE(“/proj/source/package1/CMakePakage.txt”)

INCLUDE(“/proj/source/package2/CMakePakage.txt”)




 

////////////////////////////////////////////////////

 

Okay, is there a way for replace 

SET(SUBDIRPATH /proj/source/package1)?

 

Note: this is a simplified example!!!!

 

SirAnn

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20080116/71e08f36/attachment.html


More information about the CMake mailing list