[CMake] how to hide cmake files?

Kutty Banerjee kuttyb6 at hotmail.com
Sun Oct 31 17:00:19 EST 2004


Hi,
    How d i ensure that the Makefile generated out of a given CMakeLists.txt 
goes to a particular directory?
   Also, what is the root directory for the build called CMAKE_ROOT_DIR? 
where can i find more such macros?

with thanks
kutty s banerjee
----- Original Message ----- 
From: "William A. Hoffman" <billlist at nycap.rr.com>
To: "Kutty Banerjee" <kuttyb6 at hotmail.com>; <cmake at www.cmake.org>
Sent: Friday, October 29, 2004 4:52 PM
Subject: Re: [CMake] how to hide cmake files?


> CMakeList files belong in the source tree.
> You want to use the "out of source" build with cmake.
> So:
> MainDir
>  --src/CMakeLists.txt
>  --project
>
> cd project
> cmake -G"NMake Makefiles" ../src
> nmake
>
> -Bill
>
>
> At 05:39 PM 10/29/2004, Kutty Banerjee wrote:
>>Hi,
>> Suppose i have the following directory structure viz.,
>>
>>MainDir
>>    ---src
>>    ---project
>>        -CMakeLists.txt
>>
>>Now in the `CMakeLists.txt' in the project directory, i have a 
>>SUBDIRS(../src) which is
>>where the source file is. And i do
>>CMake -G"NMake Makefiles" . All works fine
>>and i get    a makefile in the project directory. When i do nmake in the 
>>project
>>directory however, the build process crashes.
>>
>>The reason i m doing the above is to ensure that the cmake related files 
>>stay in a separate
>>folder than my src, bin and lib files.
>>
>>Is there a work around this please?
>>
>>With Thanks
>>Kutty S Banerjee
>>_______________________________________________
>>CMake mailing list
>>CMake at www.cmake.org
>>http://www.cmake.org/mailman/listinfo/cmake
>
> 


More information about the CMake mailing list