Skip to content

*find_package* for python modules

Mayeul d'Avezac edited this page Apr 11, 2014 · 1 revision
include(PythonPackage)
find_python_package(<NAME>
   [REQUIRED]        -- will fail if package not found
   [VERSION version] -- minimum version
   [EXACT]           -- must find exact version
   [QUIET]           -- silence is golden
)

Sets ${NAME}_FOUND, as well as ${NAME}_LOCATION containing the directory where the module resides, and ${NAME}_VERSION_STRING the version of the package.