Let's merge your changes and fix the issue with the PR.
emanuel wrote
With the new CMakeLists.txt (librecad_lib), I can no longer build the Python extensions using swig. I always get undefined references. It worked before. Building works perfectly fine in librecad.pro. I have no idea what to do.