Skip to content

Simplify CMake building scripts for Python modules #547

@rafa-be

Description

@rafa-be

We have a lot of duplicate code for building Python modules for the OSS, YMQ and containers.

These account for a lot of the boilerplate code our CMakeLists.txt have, and could be simplified with a custom CMake function, e.g.:

add_python_module(
    NAME <Python Module Name>
    TARGET <C++ object/library name>
    SOURCES <Source files>
    INSTALL_DESTINATION src/scaler/<directory>
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions