[Cmake] Including default rules in CMakeLists.txt

Jan Woetzel jw at mip . informatik . uni-kiel . de
Mon, 18 Aug 2003 13:17:02 +0200


Alejandro Frangi wrote:

>For instance, if I want that in a given directory, every .cc is turned
>into an executable, how should I state that?
>

Just an idea, but
(1) FILE(GLOB MYFILES *.cc)  will feed the filenames into MYFILES.

(2) FOREACH on MYFILES may be used to link an executable of each file

Jan.

-- 

  Dipl.-Ing. Jan Woetzel
--------------------------------------------------
  Url   www.mip.informatik.uni-kiel.de/~jw