Template:VTKCMakeListsNamed: Difference between revisions

From KitwarePublic
Jump to navigationJump to search
No edit summary
No edit summary
Line 2: Line 2:
{{#tag:syntaxhighlight
{{#tag:syntaxhighlight
|
|
project(SystemInfo CXX)
cmake_minimum_required(VERSION 2.6)
message(STATUS "My name is: {{{1}}}")
 
message(STATUS "I live in: {{{2}}}")
PROJECT({{{1}}})
message(STATUS "Ленин : {{{3}}}")
 
FIND_PACKAGE(VTK REQUIRED)
INCLUDE(${VTK_USE_FILE})
 
ADD_EXECUTABLE({{{1}}} {{{1}}}.cxx)
 
TARGET_LINK_LIBRARIES({{{1}}} {{{2}}})
|lang=cmake}}
|lang=cmake}}

Revision as of 13:03, 4 November 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>