[Insight-users] Re: InsightApplications - OSX - VTK4.2.1 : Mac resources added.
Luis Ibanez
luis.ibanez@kitware.com
Tue, 18 Mar 2003 13:25:31 -0500
Hi Jon,
The support for automatically adding GUI
resources in the Mac has been added to the
CMakeLists.txt files of InsightApplications
that make use of FLTK for GUI.
Please let us know if that results in any
problem,
Thanks
Luis
----------------------------------------
Jon Harald Kaspersen wrote:
> There is one thing I wanted to ask you about. Have you added support for
> setting up the right kind of resources when building InsightApplications
> on OS X ? I tested this a while back and found that it worked great. I
> just tested it on a few of the FlTk applications. For example by adding
> the following to the CMakeList.txt in the FastMarchingLevelSet example I
> got an executable with the right resources generated:
>
> IF(APPLE)
> FIND_PROGRAM(ITK_APPLE_RESOURCE Rez /Developer/Tools)
> IF(ITK_APPLE_RESOURCE)
> ADD_CUSTOM_COMMAND(
> SOURCE FastMarchingLevelSet
> COMMAND ${ITK_APPLE_RESOURCE}
> ARGS -t APPL /usr/local/include/FL/mac.r -o
> ${EXECUTABLE_OUTPUT_PATH}/FastMarchingLevelSet
> TARGET FastMarchingLevelSet
> )
> ENDIF(ITK_APPLE_RESOURCE)
> ENDIF(APPLE)
>
> Is there another way of doing this so that I don't have to add the same
> sequence to all the CMakeList.txt files ? If no, could you please add
> this sequence to the CMakeList.txt files that needs this in
> InsightApplications CVS ?
>