How to add CMake includes and libraries to Visual Studio Solution?
CMake is pretty well documented, if I have understood your question then the commands I think you're looking for are
- include_directories(...),
- link_directories(...) and
- target_link_libraries(...).
Although some configuration is done by setting variables, most of it is done using commands to add certain information to parts of the build and slightly less frequently by setting properties on targets.
I believe that include_directories ("path")
somewhere in the CMakeLists.txt does add the path
to C++ includes path.