Template:ITKCMakeLists: Difference between revisions

From KitwarePublic
Jump to navigationJump to search
(Created page with "==CMakeLists.txt== {{#tag:syntaxhighlight | cmake_minimum_required(VERSION 2.6) PROJECT({{{1}}}) FIND_PACKAGE(ITK REQUIRED) INCLUDE(${ITK_USE_FILE}) ADD_EXECUTABLE({{{1}}} {{{...")
 
Line 11: Line 11:
ADD_EXECUTABLE({{{1}}} {{{1}}}.cxx)
ADD_EXECUTABLE({{{1}}} {{{1}}}.cxx)


TARGET_LINK_LIBRARIES({{{1}}} {{{2}}})
TARGET_LINK_LIBRARIES({{{1}}} ${ITK_LIBRARIES})
|lang=cmake}}
|lang=cmake}}

Revision as of 00:12, 2 March 2011

CMakeLists.txt

<syntaxhighlight lang="cmake"> cmake_minimum_required(VERSION 2.6)

PROJECT({{{1}}})

FIND_PACKAGE(ITK REQUIRED) INCLUDE(${ITK_USE_FILE})

ADD_EXECUTABLE({{{1}}} {{{1}}}.cxx)

TARGET_LINK_LIBRARIES({{{1}}} ${ITK_LIBRARIES}) </syntaxhighlight>