[Cmake] Simple building question:
Brad King
brad.king at kitware.com
Thu, 25 Mar 2004 16:55:41 -0500
Bernhard Glück wrote:
> On Thu, 25 Mar 2004 15:56:16 -0500, Brad King <brad.king at kitware.com>
> wrote:
>
> Thanks for your help, i just naturally assumed that CMake would allow me
> to do this recursivly too :-) No biggie there.
>
> Second part of my question
> If i go with the proposed approach how would you create a VC Project
> Folder for each subdirectory ?
Try something like this:
SET(DirA_SRCS DirA/src1.cxx DirA/src2.cxx)
SET(DirB_SRCS DirB/src3.cxx DirB/src4.cxx)
ADD_LIBRARY(mylib ${DirA_SRCS} ${DirB_SRCS})
SOURCE_GROUP("Dir A" FILES ${DirA_SRCS})
SOURCE_GROUP("Dir B" FILES ${DirB_SRCS})
-Brad