[Insight-users] How to separate the ITK Applicaitons?

Hon-Cheng Wong hcwong at must . edu . mo
Wed, 30 Jul 2003 11:22:24 +0800


This is a multi-part message in MIME format.

------=_NextPart_000_0011_01C3568C.D9CDA8D0
Content-Type: text/plain;
	charset="big5"
Content-Transfer-Encoding: quoted-printable

Dear Luis and all ITK users,

         I have compiled the ITK Applications successfully, however, I =
want to separate=20

each application, for example, GaussianFilter from the whole ITK =
Applications. Then it=20

will be an independent project (has its own *.dsw instead of the =
ITKApplications.dsw).=20

Making each application can be compiled independently, I have tried to =
edit the=20

CMakeList.txt to do my task, however, I haven=A1=A6t succeeded. I got =
the following wrong=20

message:

=20

--------------------Configuration: GaussianFilter - Win32 =
Release--------------------

Building Custom Rule "D:\ITK =
Research\GaussianFilter\liFilterConsoleGUI.fl"

Compiling...

GaussianFilter.cxx

D:\ITK Research\GaussianFilter\liFilterConsole.h(20) : fatal error =
C1083: Cannot open=20

include file: 'fltkImageViewer.h': No such file or directory =
liFilterConsole.cxx

D:\ITK Research\GaussianFilter\liFilterConsole.h(20) : fatal error =
C1083: Cannot open=20

include file: 'fltkImageViewer.h': No such file or directory =
liFilterConsoleBase.cxx

liFilterConsoleGUI.cxx

D:/ITK Research/GaussianFilter/liFilterConsoleGUI.h(8) : fatal error =
C1083: Cannot open=20

include file: 'fltkLightButton.h': No such file or directory

Generating Code...

Error executing cl.exe.

=20

GaussianFilter.exe - 3 error(s), 0 warning(s)

=20

And here is my CMakeList.txt

=20

# This project is intended to be built outside the Insight source tree

PROJECT(GAUSSIANFILTER)

=20

# Find ITK.

FIND_PACKAGE(ITK)

IF(ITK_FOUND)

  INCLUDE(${ITK_USE_FILE})

ELSE(ITK_FOUND)

  MESSAGE(FATAL_ERROR

          "Cannot build without ITK.  Please set ITK_DIR.")

ENDIF(ITK_FOUND)

=20

# Determine what packages are available

# Add an option to use or not use VTK

OPTION(USE_VTK "Use VTK (The Visualization Toolkit) (some applications =
need this)" OFF)

IF(USE_VTK)

  FIND_PACKAGE(VTK)

  IF (VTK_FOUND)

    INCLUDE (${VTK_USE_FILE})

=20

    # Test for VTK using std libs

    IF(NOT VTK_USE_ANSI_STDLIB)

      MESSAGE("Warning.  Your VTK was not built with the =
VTK_USE_ANSI_STDLIB "

              "option ON.  Link errors may occur.  Consider re-building =
VTK "

              "with this option ON.  For MSVC 6, you MUST turn on the =
VTK "

              "option.  ITK will not link otherwise.")

    ENDIF(NOT VTK_USE_ANSI_STDLIB)

=20

    # Test for VTK building Hybrid

    IF(NOT VTK_USE_HYBRID)

      MESSAGE("Your VTK was not built with the VTK_USE_HYBRID option ON. =
 "

              "Please reconfigure and recompile VTK with this option =
before "

              "trying to use it with ITK.")

      SET(VTK_FOUND 0)

    ENDIF(NOT VTK_USE_HYBRID)

  ENDIF (VTK_FOUND)

ENDIF(USE_VTK)

=20

# Look for OpenGL.

FIND_PACKAGE(OpenGL)

=20

IF(OPENGL_INCLUDE_PATH)

  INCLUDE_DIRECTORIES(${OPENGL_INCLUDE_PATH})

ENDIF(OPENGL_INCLUDE_PATH)

=20

# Add an option to use or not use FLTK (http://www . fltk . org)

OPTION(USE_FLTK "Use FLTK (The Fast Light Toolkit) for GUI (some =
applications need this)" OFF)

IF(USE_FLTK)

  FIND_PACKAGE(FLTK)

  IF(FLTK_FOUND)

    INCLUDE_DIRECTORIES(${FLTK_INCLUDE_DIR})

  ENDIF(FLTK_FOUND)

ENDIF(USE_FLTK)

=20

# Applications requiring MetaImages and Fltk GUI=20

IF(FLTK_FOUND)

  IF(WIN32)

    ADD_DEFINITIONS(-DWIN32)

  ENDIF(WIN32)

  #SUBDIRS(OperatingRoom)

  IF(VTK_FOUND)

ENDIF(VTK_FOUND)

ENDIF(FLTK_FOUND)

=20

INCLUDE_DIRECTORIES(

  ${InsightApplications_SOURCE_DIR}/Auxiliary/FltkImageViewer

  ${InsightApplications_BINARY_DIR}/Auxiliary/FltkImageViewer

  ${InsightApplications_SOURCE_DIR}/GaussianFilter

  ${InsightApplications_BINARY_DIR}/GaussianFilter

)

=20

ADD_EXECUTABLE(GaussianFilter liFilterConsole.cxx

               liFilterConsoleBase.cxx GaussianFilter.cxx)

ADD_EXECUTABLE(GaussianFilter2D liFilterConsole2D.cxx

               liFilterConsole2DBase.cxx GaussianFilter2D.cxx)

=20

FLTK_WRAP_UI(GaussianFilter liFilterConsoleGUI.fl)

FLTK_WRAP_UI(GaussianFilter2D liFilterConsole2DGUI.fl)

=20

TARGET_LINK_LIBRARIES(GaussianFilter ITKFltkImageViewer ITKIO =
ITKBasicFilters)

TARGET_LINK_LIBRARIES(GaussianFilter2D ITKFltkImageViewer ITKIO =
ITKBasicFilters)

=20


Could you tell me what=A1=A6s wrong in my CMakeList.txt?=20


=20

Thank you very much in advance!!



Regards,

Hugo



Hon-Cheng Wong, Hugo

Faculty of Information Technology,

Macao University of Science and Technology,

Macao, China

------=_NextPart_000_0011_01C3568C.D9CDA8D0
Content-Type: text/html;
	charset="big5"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dbig5">
<META content=3D"MSHTML 6.00.2800.1126" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
face=3D"Times New Roman" size=3D3>Dear Luis and all ITK =
users,</FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
size=3D3><FONT face=3D"Times New Roman"><SPAN=20
style=3D"mso-spacerun: =
yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
</SPAN>I have compiled the ITK Applications successfully, however,=20
</FONT></FONT></SPAN><SPAN lang=3DEN-US><FONT face=3D"Times New Roman" =
size=3D3>I want=20
to separate </FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
face=3D"Times New Roman" size=3D3>each application, for example, =
GaussianFilter from=20
the whole ITK </FONT></SPAN><SPAN lang=3DEN-US><FONT face=3D"Times New =
Roman"=20
size=3D3>Applications. Then it </FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
face=3D"Times New Roman" size=3D3>will be an independent project (has =
its own *.dsw=20
instead of the </FONT></SPAN><SPAN lang=3DEN-US><FONT face=3D"Times New =
Roman"=20
size=3D3>ITKApplications.dsw). </FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
face=3D"Times New Roman" size=3D3>Making each application can be =
compiled=20
independently, I have tried to edit the </FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
face=3D"Times New Roman" size=3D3>CMakeList.txt to do my task, however, =
I haven=A1=A6t=20
succeeded. I got the following wrong </FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
face=3D"Times New Roman" size=3D3>message:</FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
size=3D3><FONT face=3D"Times New Roman">&nbsp;<?xml:namespace prefix =3D =
o ns =3D=20
"urn:schemas-microsoft-com:office:office" =
/><o:p></o:p></FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
face=3D"Times New Roman" size=3D3>--------------------Configuration: =
GaussianFilter=20
- Win32 Release--------------------</FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
face=3D"Times New Roman" size=3D3>Building Custom Rule "D:\ITK=20
Research\GaussianFilter\liFilterConsoleGUI.fl"</FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
face=3D"Times New Roman" size=3D3>Compiling...</FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
face=3D"Times New Roman" size=3D3>GaussianFilter.cxx</FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
face=3D"Times New Roman" size=3D3>D:\ITK=20
Research\GaussianFilter\liFilterConsole.h(20) : fatal error C1083: =
Cannot open=20
</FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
face=3D"Times New Roman" size=3D3>include file: 'fltkImageViewer.h': No =
such file or=20
directory </FONT></SPAN><SPAN lang=3DEN-US><FONT face=3D"Times New =
Roman"=20
size=3D3>liFilterConsole.cxx</FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
face=3D"Times New Roman" size=3D3>D:\ITK=20
Research\GaussianFilter\liFilterConsole.h(20) : fatal error C1083: =
Cannot open=20
</FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
face=3D"Times New Roman" size=3D3>include file: 'fltkImageViewer.h': No =
such file or=20
directory </FONT></SPAN><SPAN lang=3DEN-US><FONT face=3D"Times New =
Roman"=20
size=3D3>liFilterConsoleBase.cxx</FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
face=3D"Times New Roman" =
size=3D3>liFilterConsoleGUI.cxx</FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
face=3D"Times New Roman" size=3D3>D:/ITK=20
Research/GaussianFilter/liFilterConsoleGUI.h(8) : fatal error C1083: =
Cannot open=20
</FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
face=3D"Times New Roman" size=3D3>include file: 'fltkLightButton.h': No =
such file or=20
directory</FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US></SPAN><SPAN=20
lang=3DEN-US><FONT face=3D"Times New Roman" size=3D3>Generating=20
Code...</FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
face=3D"Times New Roman" size=3D3>Error executing =
cl.exe.</FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
size=3D3><FONT face=3D"Times New =
Roman">&nbsp;<o:p></o:p></FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
face=3D"Times New Roman" size=3D3>GaussianFilter.exe - 3 error(s), 0=20
warning(s)</FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
size=3D3><FONT face=3D"Times New =
Roman">&nbsp;<o:p></o:p></FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
face=3D"Times New Roman" size=3D3>And here is my =
CMakeList.txt</FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
size=3D3><FONT face=3D"Times New =
Roman">&nbsp;<o:p></o:p></FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
face=3D"Times New Roman" size=3D3># This project is intended to be built =
outside the=20
Insight source tree</FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
face=3D"Times New Roman" =
size=3D3>PROJECT(GAUSSIANFILTER)</FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
size=3D3><FONT face=3D"Times New =
Roman">&nbsp;<o:p></o:p></FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
face=3D"Times New Roman" size=3D3># Find ITK.</FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
face=3D"Times New Roman" size=3D3>FIND_PACKAGE(ITK)</FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
face=3D"Times New Roman" size=3D3>IF(ITK_FOUND)</FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
size=3D3><FONT face=3D"Times New Roman"><SPAN style=3D"mso-spacerun: =
yes">&nbsp;=20
</SPAN>INCLUDE(${ITK_USE_FILE})</FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
face=3D"Times New Roman" size=3D3>ELSE(ITK_FOUND)</FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
size=3D3><FONT face=3D"Times New Roman"><SPAN style=3D"mso-spacerun: =
yes">&nbsp;=20
</SPAN>MESSAGE(FATAL_ERROR</FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
size=3D3><FONT face=3D"Times New Roman"><SPAN=20
style=3D"mso-spacerun: =
yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
</SPAN>"Cannot build without ITK.<SPAN style=3D"mso-spacerun: =
yes">&nbsp;=20
</SPAN>Please set ITK_DIR.")</FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
face=3D"Times New Roman" size=3D3>ENDIF(ITK_FOUND)</FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
size=3D3><FONT face=3D"Times New =
Roman">&nbsp;<o:p></o:p></FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
face=3D"Times New Roman" size=3D3># Determine what packages are=20
available</FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
face=3D"Times New Roman" size=3D3># Add an option to use or not use=20
VTK</FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
face=3D"Times New Roman" size=3D3>OPTION(USE_VTK "Use VTK (The =
Visualization=20
Toolkit) (some applications need this)" OFF)</FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
face=3D"Times New Roman" size=3D3>IF(USE_VTK)</FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
size=3D3><FONT face=3D"Times New Roman"><SPAN style=3D"mso-spacerun: =
yes">&nbsp;=20
</SPAN>FIND_PACKAGE(VTK)</FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
size=3D3><FONT face=3D"Times New Roman"><SPAN style=3D"mso-spacerun: =
yes">&nbsp;=20
</SPAN>IF (VTK_FOUND)</FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
size=3D3><FONT face=3D"Times New Roman"><SPAN style=3D"mso-spacerun: =
yes">&nbsp;&nbsp;=20
</SPAN><SPAN style=3D"mso-spacerun: yes">&nbsp;</SPAN>INCLUDE=20
(${VTK_USE_FILE})</FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
size=3D3><FONT face=3D"Times New =
Roman">&nbsp;<o:p></o:p></FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
size=3D3><FONT face=3D"Times New Roman"><SPAN=20
style=3D"mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN># Test for VTK =
using std=20
libs</FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
size=3D3><FONT face=3D"Times New Roman"><SPAN=20
style=3D"mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>IF(NOT=20
VTK_USE_ANSI_STDLIB)</FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
size=3D3><FONT face=3D"Times New Roman"><SPAN=20
style=3D"mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
</SPAN>MESSAGE("Warning.<SPAN style=3D"mso-spacerun: yes">&nbsp; =
</SPAN>Your VTK=20
was not built with the VTK_USE_ANSI_STDLIB "</FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
size=3D3><FONT face=3D"Times New Roman"><SPAN=20
style=3D"mso-spacerun: =
yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;=20
</SPAN>"option ON.<SPAN style=3D"mso-spacerun: yes">&nbsp; </SPAN>Link =
errors may=20
occur.<SPAN style=3D"mso-spacerun: yes">&nbsp; </SPAN>Consider =
re-building VTK=20
"</FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
size=3D3><FONT face=3D"Times New Roman"><SPAN=20
style=3D"mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN=20
style=3D"mso-spacerun: =
yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN>"with=20
this option ON.<SPAN style=3D"mso-spacerun: yes">&nbsp; </SPAN>For MSVC =
6, you=20
MUST turn on the VTK "</FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
size=3D3><FONT face=3D"Times New Roman"><SPAN=20
style=3D"mso-spacerun: =
yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;=20
</SPAN>"option.<SPAN style=3D"mso-spacerun: yes">&nbsp; </SPAN>ITK will =
not link=20
otherwise.")</FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
size=3D3><FONT face=3D"Times New Roman"><SPAN=20
style=3D"mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>ENDIF(NOT=20
VTK_USE_ANSI_STDLIB)</FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
size=3D3><FONT face=3D"Times New =
Roman">&nbsp;<o:p></o:p></FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
size=3D3><FONT face=3D"Times New Roman"><SPAN=20
style=3D"mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN># Test for VTK =
building=20
Hybrid</FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
size=3D3><FONT face=3D"Times New Roman"><SPAN=20
style=3D"mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>IF(NOT=20
VTK_USE_HYBRID)</FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
size=3D3><FONT face=3D"Times New Roman"><SPAN=20
style=3D"mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
</SPAN>MESSAGE("Your=20
VTK was not built with the VTK_USE_HYBRID option ON.<SPAN=20
style=3D"mso-spacerun: yes">&nbsp; </SPAN>"</FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
size=3D3><FONT face=3D"Times New Roman"><SPAN=20
style=3D"mso-spacerun: =
yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;=20
</SPAN>"Please reconfigure and recompile VTK with this option before=20
"</FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
size=3D3><FONT face=3D"Times New Roman"><SPAN=20
style=3D"mso-spacerun: =
yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;=20
</SPAN>"trying to use it with ITK.")</FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
size=3D3><FONT face=3D"Times New Roman"><SPAN=20
style=3D"mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
</SPAN>SET(VTK_FOUND=20
0)</FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
size=3D3><FONT face=3D"Times New Roman"><SPAN=20
style=3D"mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>ENDIF(NOT=20
VTK_USE_HYBRID)</FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
size=3D3><FONT face=3D"Times New Roman"><SPAN style=3D"mso-spacerun: =
yes">&nbsp;=20
</SPAN>ENDIF (VTK_FOUND)</FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
face=3D"Times New Roman" size=3D3>ENDIF(USE_VTK)</FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
size=3D3><FONT face=3D"Times New =
Roman">&nbsp;<o:p></o:p></FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
face=3D"Times New Roman" size=3D3># Look for OpenGL.</FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
face=3D"Times New Roman" size=3D3>FIND_PACKAGE(OpenGL)</FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
size=3D3><FONT face=3D"Times New =
Roman">&nbsp;<o:p></o:p></FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
face=3D"Times New Roman" =
size=3D3>IF(OPENGL_INCLUDE_PATH)</FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
size=3D3><FONT face=3D"Times New Roman"><SPAN style=3D"mso-spacerun: =
yes">&nbsp;=20
</SPAN>INCLUDE_DIRECTORIES(${OPENGL_INCLUDE_PATH})</FONT></FONT></SPAN></=
P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
face=3D"Times New Roman" =
size=3D3>ENDIF(OPENGL_INCLUDE_PATH)</FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
size=3D3><FONT face=3D"Times New =
Roman">&nbsp;<o:p></o:p></FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
face=3D"Times New Roman" size=3D3># Add an option to use or not use FLTK =

(http://www . fltk . org)</FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
face=3D"Times New Roman" size=3D3>OPTION(USE_FLTK "Use FLTK (The Fast =
Light Toolkit)=20
for GUI (some applications need this)" OFF)</FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
face=3D"Times New Roman" size=3D3>IF(USE_FLTK)</FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
size=3D3><FONT face=3D"Times New Roman"><SPAN style=3D"mso-spacerun: =
yes">&nbsp;=20
</SPAN>FIND_PACKAGE(FLTK)</FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
size=3D3><FONT face=3D"Times New Roman"><SPAN style=3D"mso-spacerun: =
yes">&nbsp;=20
</SPAN>IF(FLTK_FOUND)</FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
size=3D3><FONT face=3D"Times New Roman"><SPAN=20
style=3D"mso-spacerun: yes">&nbsp;&nbsp;&nbsp;=20
</SPAN>INCLUDE_DIRECTORIES(${FLTK_INCLUDE_DIR})</FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
size=3D3><FONT face=3D"Times New Roman"><SPAN style=3D"mso-spacerun: =
yes">&nbsp;=20
</SPAN>ENDIF(FLTK_FOUND)</FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
face=3D"Times New Roman" size=3D3>ENDIF(USE_FLTK)</FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
size=3D3><FONT face=3D"Times New =
Roman">&nbsp;<o:p></o:p></FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
face=3D"Times New Roman" size=3D3># Applications requiring MetaImages =
and Fltk GUI=20
</FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
face=3D"Times New Roman" size=3D3>IF(FLTK_FOUND)</FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
size=3D3><FONT face=3D"Times New Roman"><SPAN style=3D"mso-spacerun: =
yes">&nbsp;=20
</SPAN>IF(WIN32)</FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
size=3D3><FONT face=3D"Times New Roman"><SPAN=20
style=3D"mso-spacerun: yes">&nbsp;&nbsp;&nbsp;=20
</SPAN>ADD_DEFINITIONS(-DWIN32)</FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
size=3D3><FONT face=3D"Times New Roman"><SPAN style=3D"mso-spacerun: =
yes">&nbsp;=20
</SPAN>ENDIF(WIN32)</FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
size=3D3><FONT face=3D"Times New Roman"><SPAN style=3D"mso-spacerun: =
yes">&nbsp;=20
</SPAN>#SUBDIRS(OperatingRoom)</FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
size=3D3><FONT face=3D"Times New Roman"><SPAN style=3D"mso-spacerun: =
yes">&nbsp;=20
</SPAN>IF(VTK_FOUND)</FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
face=3D"Times New Roman" size=3D3>ENDIF(VTK_FOUND)</FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
face=3D"Times New Roman" size=3D3>ENDIF(FLTK_FOUND)</FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
size=3D3><FONT face=3D"Times New =
Roman">&nbsp;<o:p></o:p></FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
face=3D"Times New Roman" size=3D3>INCLUDE_DIRECTORIES(</FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
size=3D3><FONT face=3D"Times New Roman"><SPAN style=3D"mso-spacerun: =
yes">&nbsp;=20
</SPAN>${InsightApplications_SOURCE_DIR}/Auxiliary/FltkImageViewer</FONT>=
</FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
size=3D3><FONT face=3D"Times New Roman"><SPAN style=3D"mso-spacerun: =
yes">&nbsp;=20
</SPAN>${InsightApplications_BINARY_DIR}/Auxiliary/FltkImageViewer</FONT>=
</FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
size=3D3><FONT face=3D"Times New Roman"><SPAN style=3D"mso-spacerun: =
yes">&nbsp;=20
</SPAN>${InsightApplications_SOURCE_DIR}/GaussianFilter</FONT></FONT></SP=
AN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
size=3D3><FONT face=3D"Times New Roman"><SPAN style=3D"mso-spacerun: =
yes">&nbsp;=20
</SPAN>${InsightApplications_BINARY_DIR}/GaussianFilter</FONT></FONT></SP=
AN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
face=3D"Times New Roman" size=3D3>)</FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
size=3D3><FONT face=3D"Times New =
Roman">&nbsp;<o:p></o:p></FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
face=3D"Times New Roman" size=3D3>ADD_EXECUTABLE(GaussianFilter=20
liFilterConsole.cxx</FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
size=3D3><FONT face=3D"Times New Roman"><SPAN=20
style=3D"mso-spacerun: =
yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;=20
</SPAN>liFilterConsoleBase.cxx =
GaussianFilter.cxx)</FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
face=3D"Times New Roman" size=3D3>ADD_EXECUTABLE(GaussianFilter2D=20
liFilterConsole2D.cxx</FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
size=3D3><FONT face=3D"Times New Roman"><SPAN=20
style=3D"mso-spacerun: =
yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;=20
</SPAN>liFilterConsole2DBase.cxx =
GaussianFilter2D.cxx)</FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
size=3D3><FONT face=3D"Times New =
Roman">&nbsp;<o:p></o:p></FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
face=3D"Times New Roman" size=3D3>FLTK_WRAP_UI(GaussianFilter=20
liFilterConsoleGUI.fl)</FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
face=3D"Times New Roman" size=3D3>FLTK_WRAP_UI(GaussianFilter2D=20
liFilterConsole2DGUI.fl)</FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
size=3D3><FONT face=3D"Times New =
Roman">&nbsp;<o:p></o:p></FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
face=3D"Times New Roman" size=3D3>TARGET_LINK_LIBRARIES(GaussianFilter=20
ITKFltkImageViewer ITKIO ITKBasicFilters)</FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
face=3D"Times New Roman" size=3D3>TARGET_LINK_LIBRARIES(GaussianFilter2D =

ITKFltkImageViewer ITKIO ITKBasicFilters)</FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
size=3D3><FONT face=3D"Times New =
Roman">&nbsp;<o:p></o:p></FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
size=3D3><FONT face=3D"Times New =
Roman"><o:p></o:p></FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
face=3D"Times New Roman" size=3D3>Could you tell me what=A1=A6s wrong in =
my=20
CMakeList.txt? </FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
size=3D3><FONT face=3D"Times New =
Roman"><o:p></o:p></FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
size=3D3><FONT face=3D"Times New =
Roman">&nbsp;<o:p></o:p></FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
face=3D"Times New Roman" size=3D3>Thank you very much in =
advance!!</FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
face=3D"Times New Roman" size=3D3></FONT></SPAN>&nbsp;</P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
face=3D"Times New Roman" size=3D3>Regards,</FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
face=3D"Times New Roman" size=3D3>Hugo</FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
face=3D"Times New Roman" size=3D3></FONT></SPAN>&nbsp;</P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
face=3D"Times New Roman" size=3D3>Hon-Cheng Wong, Hugo</FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
face=3D"Times New Roman" size=3D3>Faculty of Information=20
Technology,</FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
face=3D"Times New Roman" size=3D3>Macao University of Science and=20
Technology,</FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-US><FONT=20
face=3D"Times New Roman" size=3D3>Macao,=20
China</FONT></SPAN></P></FONT></DIV></BODY></HTML>

------=_NextPart_000_0011_01C3568C.D9CDA8D0--