summaryrefslogtreecommitdiff
path: root/meta/classes/cmake.bbclass
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <hrw@openedhand.com>2008-06-18 08:35:24 +0000
committerMarcin Juszkiewicz <hrw@openedhand.com>2008-06-18 08:35:24 +0000
commitda3040f29760899db17b4ec1cd0fd238897229e0 (patch)
treee3023ae957e83e40728ef901b3ed6894c21b73e6 /meta/classes/cmake.bbclass
parentd03024f85a8a68fd612f7e28b6ebc46949f18a82 (diff)
downloadopenembedded-core-da3040f29760899db17b4ec1cd0fd238897229e0.tar.gz
openembedded-core-da3040f29760899db17b4ec1cd0fd238897229e0.tar.bz2
openembedded-core-da3040f29760899db17b4ec1cd0fd238897229e0.zip
cmake.bbclass: added version from OE + cross-compilation support
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4688 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/classes/cmake.bbclass')
-rw-r--r--meta/classes/cmake.bbclass11
1 files changed, 11 insertions, 0 deletions
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