[Cmake] Finding current directory

Iker Arizmendi iker at research.att.com
Mon, 12 Apr 2004 23:20:02 -0400


Zachary Pincus wrote:
 > Hello,
 >
 > Is there any way to get the "current working directory" in a CMake
 > variable?

You can use the following:

CMAKE_CURRENT_SOURCE_DIR: points to your current source directory
CMAKE_CURRENT_BINARY_DIR: points to the equivalent binary directory

Very useful indeed :)

Iker

-- 
Iker Arizmendi
AT&T Labs - Research
Speech and Image Processing Lab
e: iker at research.att.com
w: http://research.att.com