Template:VTKCMakeListsNamed: Difference between revisions

From KitwarePublic
Jump to navigationJump to search
No edit summary
No edit summary
Line 9: Line 9:
ADD_EXECUTABLE({{{1}}} {{{1}}}.cxx)
ADD_EXECUTABLE({{{1}}} {{{1}}}.cxx)
TARGET_LINK_LIBRARIES({{{1}}} {{{2}}})
TARGET_LINK_LIBRARIES({{{1}}} {{{2}}})
</syntaxhighlight>
<syntaxhighlight>
int a;
</syntaxhighlight>
</syntaxhighlight>

Revision as of 17:15, 1 October 2010

CMakeLists.txt

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

PROJECT({{{1}}})

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

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

<syntaxhighlight> int a; </syntaxhighlight>