JFYI, There is a proposal for revamping CMake: https://github.com/FreeCAD/FreeCAD/pull/2477 relevant: https://github.com/qingfengxia/FreeCAD_Mod_Dev_Guide/blob/master/chapters/2.FreeCAD_source_code_structure.md https://github.com/qingfengxia/FreeCAD_Mod_Dev_Guide/blob/master/chapters/A2.cmake_cheatsheet.md