First of all, I already read How to read a CMake Variable in C++ source code, and I don't really know if it can help me.
Second, my question. Top level CMakeLists.txt says SET( MY_VAR /some/path )
and in top level source.cpp I need to achieve somehow a std::string
containing /some/path/to/files
naturally using MY_VAR
value.