• Dylan Baker's avatar
    cmake: Simplify finding python modules · a55fbebd
    Dylan Baker authored
    This patch adds 3 files, PythonModule.cmake, FindPythonMako.cmake and
    PythonModule provides a simple function for running python and parsing
    the version strings, each FindPython*.cmake then just calls that
    function, and then calls the find_package_handle_standard_args macro for
    simple, standard finding. This is much more in line with how the core
    cmake modules work, and makes is trivial to add additional python
    modules with all of the standard cmake awesomeness like version
    Signed-off-by: default avatarDylan Baker <dylanx.c.baker@intel.com>
    Reviewed-by: Jose Fonseca's avatarJose Fonseca <jfonseca@vmware.com>
FindPythonMako.cmake 1.14 KB