Template:ITKVTKCMakeLists: Difference between revisions

From KitwarePublic
Jump to navigationJump to search
(Created page with "cmake_minimum_required(VERSION 2.6) PROJECT({{{1}}}) FIND_PACKAGE(ItkVtkGlue REQUIRED) INCLUDE(${ItkVtkGlue_USE_FILE}) ADD_EXECUTABLE({{{1}}} {{{1}}}.cxx) TARGET_LINK_LIB...")
 
No edit summary
Line 1: Line 1:
==CMakeLists.txt==
{{#tag:syntaxhighlight
|
cmake_minimum_required(VERSION 2.6)
cmake_minimum_required(VERSION 2.6)
   
   
Line 10: Line 13:
TARGET_LINK_LIBRARIES({{{1}}}
TARGET_LINK_LIBRARIES({{{1}}}
ItkVtkGlue
ItkVtkGlue
vtkHybrid
{{{2}}}
${ITK_LIBRARIES})
${ITK_LIBRARIES})
|lang=cmake}}

Revision as of 18:56, 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>