from typing import List
import platform


def get_cmake_in_package_install_args() -> List[str]:
    """Return default installation settings for installing libecole in the package."""
    system = platform.system()
    if system == "Linux":
        origin = r"\${ORIGIN}"
    elif system == "Darwin":
        origin = "@loader_path"
    else:
        raise NotImplementedError(f"OS {system} is not supported")
    return [
        "-DBUILD_SHARED_LIBS=ON",
        "-DCMAKE_INSTALL_LIBDIR=lib",
        "-DCMAKE_INSTALL_BINDIR=bin",
        "-DCMAKE_INSTALL_INCLUDEDIR=include",
        "-DECOLE_PY_EXT_INSTALL_LIBDIR='.'",
        "-DECOLE_PY_EXT_INSTALL_RPATH={origin}/lib".format(origin=origin),
    ]