Linking Python Libraries in CMake Files

Hi again,
I was wondering if anyone knew how to link Python libraries in the CMake files, specifically for Eeschema? I am trying to embed a Python script into one of the files.

I have tried linking the library in “target_link_libraries”, but I still get errors that the library is not found:

(for example, in the CMakeList.txt for Eeschema, I added “-LC:/PYTHON36/Lib”, which is the path to the python libraries.

Any help would be greatly appreciated. Thank you!

Edit: I figured it out!
If anyone needs to do that one must just edit the CMakeLists.txt file where it says “target_link_libraries”, with:
target_link_libraries( eeschema_kiface

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.