[CMake] Multiple CMakeLists.txt in the same directory
David Cole
david.cole at kitware.com
Thu Dec 18 11:29:40 EST 2008
Consider a CMakeLists.txt file as if it were one of your project files. You
will use the CMakeLists.txt file to generate project files after converting
to cmake. You should be able to write one that references your source, just
as you reference your source from your existing VS project files.
The source can exist in any directory you want it to, you just have to
reference it correctly from within the CMakeLists.txt file. It's only by
convention and history that CMakeLists.txt files typically reference source
files in the same directory.
Does that make sense?
On Thu, Dec 18, 2008 at 11:12 AM, Jon Shuler <jonshuler at yahoo.com> wrote:
> I am looking at converting our build system to cmake and have found an
> issue. We keep all the project files (VS 6, VS 2003 and VS 2008) in one
> common directory that is separate from the source tree. Based on what I
> read it looks like CMake expects the CMakeLists.txt to exist in the same
> directory as the source.
>
> What options do we have other than moving the projects files?
>
> Thanks,
> Jon
>
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20081218/19a9d443/attachment-0001.htm>
More information about the CMake
mailing list