I've got this kind of project directory design:
Main:
CMakeLists.txt
subproject1:
CMakeLists.txt
subproject2
CMakeLists.txt
How can I check in subproject1/CMakeLists.txt file if subproject1 cmake was called by the Main project, or as a standalone one?