[CMake] Multiple CMakeLists.txt in the same directory

Patrick Spendrin ps_ml at gmx.de
Thu Dec 18 12:01:23 EST 2008


Jon Shuler schrieb:
> Right now we have a build\win32 directory that contains all the projects 
> files.  I was looking at creating a CMakeLists.txt for each project and 
> putting them in the same directory.  I rather have separate 
> CMakeLists.txt for each project instead of one big file.
> 
> How would this work based on what you explained?
You have one CMAkeLists.txt per directory (e.g. per subproject if you 
have them in organized like that) within that directory. If you then 
call cmake it will generate the NMake Makefiles or IDE project files in 
your build directory. From there on you will simply go on the same way 
as you always did (either call nmake or open the project file with your 
IDE).
> 
> Jon
Patrick
> 

-- 
web:                 http://windows.kde.org
mailing list:        kde-windows at kde.org
irc:                 #kde-windows (irc.freenode.net)


More information about the CMake mailing list