I am working on what requires some header files from another source tree. For various reasons, I would like to keep these headers outside of my project and reference them during the make process.
I have a CMake build script that generates my makefiles, but I would like to be able to generate makefiles with references to the environment variables in them so that the generated makefile can be run as follows:
HEADERS=/somewhere/on/the/filesystem make
Is this possible using CMake? Otherwise, is there a way to get what I got after using only CMake?
source
share