[Insight-users] Re: CMake to set up resources for executables on OSX ?
Jon Harald Kaspersen
Jon.H.Kaspersen@unimed.sintef.no
Fri, 17 Jan 2003 15:11:26 +0100
--Apple-Mail-2-80977160
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
charset=US-ASCII;
format=flowed
Bill,
So, I will have to add something like this to my CMakeLists.txt file in
Insight/Applications/ directory :
Is there a ITK_APPLE_RESOURCE parameter in CMake ?
IF(APPLE)
FIND_PROGRAM(VTK_APPLE_RESOURCE Rez /Developer/Tools)
IF(VTK_APPLE_RESOURCE)
ADD_CUSTOM_COMMAND(
SOURCE itk
COMMAND ${VTK_APPLE_RESOURCE}
ARGS -t APPL /usr/local/include/FL/mac.r -o
${EXECUTABLE_OUTPUT_PATH}
TARGET itk
)
ENDIF(VTK_APPLE_RESOURCE)
ENDIF(APPLE)
Regards
Jon
On Friday, January 17, 2003, at 02:54 PM, Bill Hoffman wrote:
> Yes, this can be done, and is being done in VTK, here is
> what the code looks like in VTK:
>
>
> IF(VTK_USE_CARBON)
> FIND_PROGRAM(VTK_APPLE_RESOURCE Rez /Developer/Tools)
> IF(VTK_APPLE_RESOURCE)
> ADD_CUSTOM_COMMAND(
> SOURCE vtk
> COMMAND ${VTK_APPLE_RESOURCE}
> ARGS Carbon.r -o ${EXECUTABLE_OUTPUT_PATH}/vtk
> TARGET vtk
> )
> ENDIF(VTK_APPLE_RESOURCE)
> ENDIF(VTK_USE_CARBON)
>
========================================================
Jon Harald Kaspersen Tel: +47 73 59 75 89
Ph.D. Mechanical Engineering Mob: +47 93 03 65 90
Senior Scientist Pager +47 96 84 29 94
SINTEF Unimed - Ultralyd Fax: +47 73 59 78 73
N-7465 Trondheim
NORWAY e-mail: Jon.H.Kaspersen@unimed.sintef.no
WEB: http://www.us.unimed.sintef.no/
========================================================
--Apple-Mail-2-80977160
Content-Transfer-Encoding: 7bit
Content-Type: text/enriched;
charset=US-ASCII
Bill,
So, I will have to add something like this to my CMakeLists.txt file
in Insight/Applications/ directory :
Is there a ITK_APPLE_RESOURCE parameter in CMake ?
IF(APPLE)
FIND_PROGRAM(VTK_APPLE_RESOURCE Rez /Developer/Tools)
IF(VTK_APPLE_RESOURCE)
ADD_CUSTOM_COMMAND(
SOURCE itk
COMMAND ${VTK_APPLE_RESOURCE}
ARGS -t APPL /usr/local/include/FL/mac.r -o
${EXECUTABLE_OUTPUT_PATH}
TARGET itk
)
ENDIF(VTK_APPLE_RESOURCE)
ENDIF(APPLE)
Regards
Jon
On Friday, January 17, 2003, at 02:54 PM, Bill Hoffman wrote:
<excerpt>Yes, this can be done, and is being done in VTK, here is
what the code looks like in VTK:
IF(VTK_USE_CARBON)
FIND_PROGRAM(VTK_APPLE_RESOURCE Rez /Developer/Tools)
IF(VTK_APPLE_RESOURCE)
ADD_CUSTOM_COMMAND(
SOURCE vtk
COMMAND ${VTK_APPLE_RESOURCE}
ARGS Carbon.r -o ${EXECUTABLE_OUTPUT_PATH}/vtk
TARGET vtk
)
ENDIF(VTK_APPLE_RESOURCE)
ENDIF(VTK_USE_CARBON)
</excerpt>========================================================
Jon Harald Kaspersen Tel: +47 73 59 75 89
Ph.D. Mechanical Engineering Mob: +47 93 03 65 90
Senior Scientist Pager +47 96 84 29 94
SINTEF Unimed - Ultralyd Fax: +47 73 59 78 73
N-7465 Trondheim
NORWAY e-mail: Jon.H.Kaspersen@unimed.sintef.no
WEB: <underline><color><param>1A1A,1A1A,FFFF</param>http://www.us.unimed.sintef.no/</color></underline>
========================================================
--Apple-Mail-2-80977160--