OpenAssetIO / OpenAssetIO-MediaCreation

OpenAssetIO extensions for use in the Media Creation industry.
Apache License 2.0
12 stars 10 forks source link

[Build] Add hybrid python generation to cmake. #50

Closed elliotcmorris closed 1 year ago

elliotcmorris commented 1 year ago

Closes #49 Adds the ability to optionally and additionally generate the python package when running under the cmake build system.

This is intended to enable hybrid hosts/managers to get both of their required libraries out without needing to call out/synchronize between multiple build systems (cmake & pip)

Adds OPENASSETIO_MEDIACREATION_GENERATE_PYTHON as the toggle variable, and OPENASSETIO_MEDIACREATION_PYTHON_SITEDIR as the location override variable.

Brings in the python part of ThirdParty.cmake from the OpenAssetIO directory to do the path intuition for the sitedir.

Added a test that invokes the cmake generation and runs the import test suite by setting the pythonpath.