diff --git a/meta/classes/cmake.bbclass b/meta/classes/cmake.bbclass new file mode 100644 index 0000000000..a9130f2a05 --- /dev/null +++ b/meta/classes/cmake.bbclass @@ -0,0 +1,11 @@ +DEPENDS += " cmake-native " + +# We want the staging and installing functions from autotools +inherit autotools + +cmake_do_configure() { + cmake . -DCMAKE_INSTALL_PREFIX:PATH=${prefix} -Wno-dev \ + -DCMAKE_FIND_ROOT_PATH=${STAGING_DIR_HOST} +} + +EXPORT_FUNCTIONS do_configure