If I have a CMake project organized in more than two level, i.e.<div><br></div><div>CMakeLists.txt:</div><div>PROJECT(A)</div><div>add_subdirectories(./projectB)</div><div><br></div><div>./projectB/CMakeLists.txt:</div><div>
PROJECT(B)</div><div>add_subdirectories(${PROJECT_SOURCE_DIR}/projectC)</div><div><br></div><div>./projectB/projectC/CMakeLists.txt:</div><div>PROJECT(C)</div><div><br></div><div>is there some kind of way for a project to detect the name of the project from which it was added? In this example, can C know that was added by B?</div>
<div>(and B was added by A?)</div><div><br></div><div>Thanks!!</div><div><br></div><div>Fil</div>