Template:VTKCMakeListsNamed: Difference between revisions

From KitwarePublic
Jump to navigationJump to search
No edit summary
No edit summary
Line 1: Line 1:
==CMakeLists.txt==
==CMakeLists.txt==
<syntaxhighlight lang="cmake">cmake_minimum_required(VERSION 2.6)
<syntaxhighlight lang="cmake">
cmake_minimum_required(VERSION 2.6)
   
   
PROJECT({{{1}}})
PROJECT({{#tag:syntaxhighlight|{{{1}}} }})
   
   
FIND_PACKAGE(VTK REQUIRED)
FIND_PACKAGE(VTK REQUIRED)

Revision as of 23:58, 3 November 2010

CMakeLists.txt

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

PROJECT(<syntaxhighlight>{{{1}}} </syntaxhighlight>)

FIND_PACKAGE(VTK REQUIRED) INCLUDE(${VTK_USE_FILE})

ADD_EXECUTABLE({{{1}}} {{{1}}}.cxx) TARGET_LINK_LIBRARIES({{{1}}} {{{2}}}) </syntaxhighlight>