[CMake] how to hide cmake files?
William A. Hoffman
billlist at nycap.rr.com
Fri Oct 29 17:52:39 EDT 2004
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