Am trying to change default storage of the library, executable and include files to a specified directory in Cmake.
For e.g.: When I run Cmake, it will get build in a particular directory (where the source files are kept) and also generates the executables, libraries and include files in the same source directory. I want to define the output path for executables, libraries and include files in below structure.
X:\Builddirectory\lib\Debug\.... library files.
X:\Builddirectory\lib\Release\.... library files.
X:\Builddirectory\include\.... all the include files.
X:\Builddirectory\bin\.... executable files.
In order to perform the above, following CMake
variables needs to be set.
But I am not aware how to edit these variables:
LIBRARY_OUTPUT_PATH
EXECUTABLE_OUTPUT_PATH
PROJECT_BINARY_DIR
may be some other variables as well.
Thanks for suggestions and help.