[CMake] Out of Source CMakeLists

Bill Hoffman bill.hoffman at kitware.com
Tue Jan 20 14:59:16 EST 2015


On 1/20/2015 1:57 PM, Ma O-Nigiri wrote:
> I'm porting a makefile based project over to CMake and would like to
> keep my CMakeLists in a separate set of directories:
Why not keep the CMakeLists.txt in the project tree, but never do an in 
source build?  Then the makefiles that cmake creates will never conflict 
with the existing ones.

src/Makefile
src/CMakeLists.txt

build -> This starts as an empty directory that is filled by CMake with 
build files.

-Bill



More information about the CMake mailing list