--------------------------------------------------------------------------------------------------------------
How to compile a VTK program at Linux?
Once the VTK installed, to execute an example code from Kitware package, here is the thing:
1) Create a file CMakeLists.txt (get the example:CMakeLists.txt)
In this example , change the words: nome_projeto(project name), NOMEPROJETO (project name), nome_arquivo_fonte (source code file name), nome_arquivo_executavel (executable file name).
2)Put the CMakeLists and the source code at the same directory. On console, inside the CMakeLists's directory, try:
$>ccmake .
To perform simple examples, no more changes is necessary on cmake compile. Press 'c' to configure, and 'g' to generate a binary file.
3) On console, try:
$>make
4)To perform the example program, try:
$>./executable_file_name
|