Template:ITKCMakeLists: Difference between revisions

From KitwarePublic
Jump to navigationJump to search
No edit summary
(Changed to match style of Current CMake Documentation)
Line 4: Line 4:
cmake_minimum_required(VERSION 2.6)
cmake_minimum_required(VERSION 2.6)


PROJECT({{{1}}})
project({{{1}}})


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


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


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

Revision as of 22:41, 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}}} ITKReview ${ITK_LIBRARIES}) </syntaxhighlight>