ITK/Examples/CMake/CheckForITK4

From KitwarePublic
< ITK‎ | Examples
Revision as of 16:30, 23 June 2012 by Daviddoria (talk | contribs) (Created page with "==CMakeLists.txt== <source lang="cmake"> # This is what is usually done to require any version of ITK # find_package(ITK REQUIRED) # include(${ITK_USE_FILE}) # This requires ITK...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

CMakeLists.txt

<source lang="cmake">

  1. This is what is usually done to require any version of ITK
  2. find_package(ITK REQUIRED)
  3. include(${ITK_USE_FILE})
  1. This requires ITK4

find_package(ITK 4 REQUIRED) include(${ITK_USE_FILE}) </source>