If the developers of the software provided a facility to install the program (i.e., via make install) then the executables will be copied elsewhere. When you're all compiled and installed, just removed this build directory.Īnd yes, it is usually called build in various documentations, but it can be called anything. Then, in this directory, do the make to perform the compilation. I think the documentation calls this an "out-of-source build". The instructions for cmake usually suggest creating a build directory. For an in-source build, this would be the same as CMAKEBINARYDIR. This is the full path to the top level of the current CMake source tree. I think the documentation calls this an "in-source build". The path to the top level of the source tree. You can run cmake in the same directory where the source code is, but that is generally messy because all the object files and executables will be located in the same directory as the source code. With cmake-based programs, you first use cmake to configure it and then use make to actually do the compilation.
0 Comments
Leave a Reply. |