Template:ITKVTKCMakeLists: Difference between revisions
From KitwarePublic
Jump to navigationJump to search
Daviddoria (talk | contribs) (removed caps) |
|||
Line 4: | Line 4: | ||
cmake_minimum_required(VERSION 2.6) | 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}) | ItkVtkGlue {{{2}}} ${ITK_LIBRARIES}) | ||
Revision as of 12:48, 3 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.