[Insight-users] Adding Executable files with CMake

Miller, James V (Research) millerjv at crd . ge . com
Wed, 27 Aug 2003 12:15:26 -0400


ADD_EXECUTABLE() is the way to do this.

How else would you specify multiple executables without indicating the
names and sources for each executable?

You can use CMake variables, macros, and loops to ease this burden if your
executables/source files follow a particular pattern.



> -----Original Message-----
> From: Adolfo Gonzalez Uzabal [mailto:fito at unizar . es]
> Sent: Wednesday, August 27, 2003 12:06 PM
> To: insight-users at itk . org
> Subject: [Insight-users] Adding Executable files with CMake
> 
> 
> Hi all!!
> 
> I'm trying to use CMake to get several exe files in a quite 
> big project. I 
> think ADD_EXECUTABLE option is an easy way to get this.
> 
> But I'm wondering if there is some better way to tell CMake 
> to have more than 
> one executable generated, as in a really big project it could 
> be a boring task 
> to have dozens of ADD_EXECUTABLE lines. 
> 
> I've searched the web and read the docs but have found 
> nothing I can use.
> 
> Appologizes in advance for posting this entire CMake doubt 
> into the ITK list!
> 
> Regards!
> Adolfo G.U.
> 
> -- 
> Adolfo Gonzalez Uzabal
> Universidad de Zaragoza
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk . org
> http://www . itk . org/mailman/listinfo/insight-users
>