[CMake] how to hide cmake files?
Brad King
brad.king at kitware.com
Mon Nov 1 21:20:17 EST 2004
Kutty Banerjee wrote:
> How d i ensure that the Makefile generated out of a given
> CMakeLists.txt goes to a particular directory?
The Makefile for each CMakeLists.txt file is always generated in the
build tree with the same relative path as in the source tree:
myproj-source/CMakeLists.txt -> myproj-build/Makefile
myproj-source/Foo/CMakeLists.txt -> myproj-build/Foo/Makefile
The build tree is specified in the CMakeSetup dialog in Windows or as
the current working directory from the UNIX or Windows command line:
$ ls -d myproj-source
myproj-source/
$ mkdir myproj-build
$ cd myproj-build
$ cmake ../myproj-source
> Also, what is the root directory for the build called CMAKE_ROOT_DIR?
> where can i find more such macros?
The book "Mastering CMake" has a section listing them:
http://www.cmake.org/HTML/Documentation.html
-Brad
More information about the CMake
mailing list