Template:ITKVTKCMakeLists: Difference between revisions
From KitwarePublic
Jump to navigationJump to search
Line 11: | Line 11: | ||
ADD_EXECUTABLE({{{1}}} {{{1}}}.cxx) | ADD_EXECUTABLE({{{1}}} {{{1}}}.cxx) | ||
TARGET_LINK_LIBRARIES({{{1}}} | TARGET_LINK_LIBRARIES({{{1}}} | ||
ItkVtkGlue | ItkVtkGlue | ||
{{{2}}} | {{{2}}} | ||
${ITK_LIBRARIES}) | ${ITK_LIBRARIES}) | ||
|lang=cmake}} | |lang=cmake}} | ||
==ItkVtkGlue== | ==ItkVtkGlue== | ||
If you download the entire ITK Wiki Examples Collection, the ItkVtkGlue directory will be included and configured. If you wish to just build a few examples, then you will need to [http://gitorious.org/itkwikiexamples/itkwikiexamples/blobs/raw/master/ItkVtkGlue.tar.gz download ItkVtkGlue] and build it. When you run cmake it will ask you to specify the location of the itkVtkGlue binary directory. | If you download the entire ITK Wiki Examples Collection, the ItkVtkGlue directory will be included and configured. If you wish to just build a few examples, then you will need to [http://gitorious.org/itkwikiexamples/itkwikiexamples/blobs/raw/master/ItkVtkGlue.tar.gz download ItkVtkGlue] and build it. When you run cmake it will ask you to specify the location of the itkVtkGlue binary directory. |
Revision as of 20:48, 1 March 2011
CMakeLists.txt
<syntaxhighlight lang="cmake"> cmake_minimum_required(VERSION 2.6)
PROJECT({{{1}}})
FIND_PACKAGE(ItkVtkGlue REQUIRED) INCLUDE(${ItkVtkGlue_USE_FILE})
ADD_EXECUTABLE({{{1}}} {{{1}}}.cxx) TARGET_LINK_LIBRARIES({{{1}}}
ItkVtkGlue {{{2}}} ${ITK_LIBRARIES})
</syntaxhighlight>
ItkVtkGlue
If you download the entire ITK Wiki Examples Collection, the ItkVtkGlue directory will be included and configured. If you wish to just build a few examples, then you will need to download ItkVtkGlue and build it. When you run cmake it will ask you to specify the location of the itkVtkGlue binary directory.