I would like to use CMake for a project, but I have the following two requirements:
- The final output of the project should be a set of object files (*.o).
- The location of the object files is important. I want to select which directory the files are outputted.
Does CMake support this type of behavior? If so, how? Can I do it with move commands after the object file is build?
First create an object library.
Now the problem is that:
I would try to use the install(DIRECTORY ...).
Using the options:
A flaw of this solution will be in the output directory name, that will be basically decided by cmake, I wonder if anything can be done in that respect.