VTK/Tutorials/CMakeListsFile: Difference between revisions
From KitwarePublic
Jump to navigationJump to search
Daviddoria (talk | contribs) (New page: To use Cmake to generate your project, this is what the CMakeLists.txt file should look like: <nowiki> cmake_minimum_required(VERSION 2.6) PROJECT(Test) FIND_PACKAGE(VTK REQUIRED) INCLUD...) |
Daviddoria (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
To use Cmake to generate your project, this is what the CMakeLists.txt file should look like: | To use Cmake to generate your project, this is what the CMakeLists.txt file should look like: | ||
< | <source> | ||
cmake_minimum_required(VERSION 2.6) | cmake_minimum_required(VERSION 2.6) | ||
PROJECT(Test) | PROJECT(Test) | ||
Line 11: | Line 11: | ||
TARGET_LINK_LIBRARIES(Test vtkHybrid) | TARGET_LINK_LIBRARIES(Test vtkHybrid) | ||
</ | </source> |
Revision as of 12:56, 2 July 2009
To use Cmake to generate your project, this is what the CMakeLists.txt file should look like:
<source> cmake_minimum_required(VERSION 2.6) PROJECT(Test)
FIND_PACKAGE(VTK REQUIRED) INCLUDE(${VTK_USE_FILE})
ADD_EXECUTABLE(Test Test.cpp) TARGET_LINK_LIBRARIES(Test vtkHybrid)
</source>