[Insight-users] Writing images to files
uday kurkure
udaykurkure at yahoo.com
Tue Sep 7 20:45:18 EDT 2004
Hello Chris,
It is always good to find a project in Examples and/or
Applications which is similar to your application and
check its CmakeLists.txt
Like for Image read/write, the CmakeList in
Examples/IO has an entry
ADD_EXECUTABLE(ImageReadWrite ImageReadWrite.cxx )
TARGET_LINK_LIBRARIES(ImageReadWrite ITKCommon ITKIO)
So, you will know which libraries to use.
Hope this will help you with your other applications.
Regards,
Uday
--- chris harris <chrisharrisgod at yahoo.com> wrote:
> Hi Julien,
> I did not add any libraries in my
> cmakelist.txt file . I just copied the HelloWorld
> cmakelists.txt and then changed the names to Image1
> which is my program. I did not add any libraries to
> the CmakeLists.txt What libraries should we add for
> writing IO reading a file ? I thought the
> Cmakelists.txt for HelloWorld was standard and we
> just have to change the name. Thanks for the help .
> Looks like I'm just seeing the tip of the ITK
> Iceberg.
>
> Here is my Cmakelists.txt
>
> PROJECT(Image)
>
> FIND_PACKAGE(ITK)
>
> IF(ITK_FOUND)
>
> INCLUDE(${ITK_USE_FILE})
>
> ELSE(ITK_FOUND)
>
> MESSAGE(FATAL_ERROR
>
> "ITK not found. Please set ITK_DIR.")
>
> ENDIF(ITK_FOUND)
>
> ADD_EXECUTABLE(Image Image.cxx )
>
> TARGET_LINK_LIBRARIES(Image ITKCommon)
>
>
>
>
> Thanks
> Chris harris
>
> ---------------------------------
> Do you Yahoo!?
> Win 1 of 4,000 free domain names from Yahoo! Enter
now.> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>
_______________________________
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.
http://promotions.yahoo.com/goldrush
More information about the Insight-users
mailing list