[CMake] Multiple CMakeLists.txt in the same directory
Tyler Roscoe
tyler at cryptio.net
Thu Dec 18 11:19:31 EST 2008
On Thu, Dec 18, 2008 at 08:12:46AM -0800, Jon Shuler 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?
CMake will deposit its generated .vcproj/.sln files in
CMAKE_CURRENT_BINARY_DIR. It is a best practice to have your BINARY_DIR
separate from your SOURCE_DIR (where CMakeLists.txt resides) -- this is
what is referred to as an "out-of-source build".
hth,
tyler
More information about the CMake
mailing list