import shutil


def test_cmtk_install() -> int:
    """
    Tries to determine if CMTK is installed and whether individual binaries are directly accessible
    or are accessible via the cmtk script call
    :return: -1: No cmtk install detected, 0: Direct call, 1: call via cmtk script
    """
    if shutil.which("warp") is not None:
        return 0
    if shutil.which("cmtk") is not None:
        return 1
    return -1