I am new with building software using cmake.
I want to install VTK using cmake. I downloaded the .tar file and un-tared it. This leaves me with a directory that contains some cmake files and some other stuff.
Suppose I have un-tared all files in the directory /HOME/USER/SETUP_FILES/
and created a directory /HOME/USER/SETUP_FILES/BUILD
When I cd into /HOME/USER/SETUP_FILES/BUILD
and execute cmake ../.
I am able to configure the build.
In the configuration file, I can choose to define CMAKE_INSTALL_PREFIX
My first question is:
1) What should I enter there?
When I enter for example /HOME/USER/VTK_PROGRAM
this folder is created (after make
and make install
) that contains a bin/
folder (along with some other folders).
However, in the /HOME/USER/SETUP_FILES/BUILD
there is also a bin/
folder created.
My second question is:
2) I now have three folders with files. Which one(s) should I keep in order to have a working program:
a) /HOME/USER/SETUP_FILES
b) /HOME/USER/SETUP_FILES/BUILD
c) /HOME/USER/VTK_PROGRAM
Is it possible to merge the b) and c) folders?