diff options
Diffstat (limited to 'meta-oe/recipes-support/ceres-solver')
| -rw-r--r-- | meta-oe/recipes-support/ceres-solver/ceres-solver_2.2.0.bb | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/meta-oe/recipes-support/ceres-solver/ceres-solver_2.2.0.bb b/meta-oe/recipes-support/ceres-solver/ceres-solver_2.2.0.bb index 0a8f237180..5368bdeeb4 100644 --- a/meta-oe/recipes-support/ceres-solver/ceres-solver_2.2.0.bb +++ b/meta-oe/recipes-support/ceres-solver/ceres-solver_2.2.0.bb | |||
| @@ -3,12 +3,11 @@ HOMEPAGE = "http://ceres-solver.org/" | |||
| 3 | LICENSE = "BSD-3-Clause" | 3 | LICENSE = "BSD-3-Clause" |
| 4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=3585a26c9cd9ec0cb36a7d65542878ca" | 4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=3585a26c9cd9ec0cb36a7d65542878ca" |
| 5 | 5 | ||
| 6 | DEPENDS = "libeigen glog" | 6 | DEPENDS = "libeigen" |
| 7 | 7 | ||
| 8 | SRC_URI = "git://github.com/ceres-solver/ceres-solver.git;branch=master;protocol=https" | 8 | SRC_URI = "git://github.com/ceres-solver/ceres-solver.git;branch=master;protocol=https" |
| 9 | SRCREV = "85331393dc0dff09f6fb9903ab0c4bfa3e134b01" | 9 | SRCREV = "85331393dc0dff09f6fb9903ab0c4bfa3e134b01" |
| 10 | 10 | ||
| 11 | |||
| 12 | inherit cmake | 11 | inherit cmake |
| 13 | 12 | ||
| 14 | do_configure:prepend() { | 13 | do_configure:prepend() { |
| @@ -19,6 +18,14 @@ do_configure:prepend() { | |||
| 19 | touch ${S}/.git/hooks/commit-msg 2>/dev/null || : | 18 | touch ${S}/.git/hooks/commit-msg 2>/dev/null || : |
| 20 | } | 19 | } |
| 21 | 20 | ||
| 21 | EXTRA_OECMAKE += " \ | ||
| 22 | -DBUILD_BENCHMARKS=OFF \ | ||
| 23 | -DBUILD_EXAMPLES=OFF \ | ||
| 24 | -DBUILD_TESTING=OFF \ | ||
| 25 | -DGFLAGS=OFF \ | ||
| 26 | -DUSE_CUDA=OFF \ | ||
| 27 | " | ||
| 28 | |||
| 22 | # We don't want path to eigen3 in ceres-solver RSS to be | 29 | # We don't want path to eigen3 in ceres-solver RSS to be |
| 23 | # used by components which use CeresConfig.cmake from their | 30 | # used by components which use CeresConfig.cmake from their |
| 24 | # own RSS | 31 | # own RSS |
| @@ -27,11 +34,12 @@ do_configure:prepend() { | |||
| 27 | # ceres-solver/1.14-r0/packages-split/ceres-solver-dev/usr/lib/cmake/Ceres/CeresConfig.cmake: set(glog_DIR ceres-solver/1.14-r0/recipe-sysroot/usr/lib/cmake/glog) | 34 | # ceres-solver/1.14-r0/packages-split/ceres-solver-dev/usr/lib/cmake/Ceres/CeresConfig.cmake: set(glog_DIR ceres-solver/1.14-r0/recipe-sysroot/usr/lib/cmake/glog) |
| 28 | SSTATE_SCAN_FILES += "*.cmake" | 35 | SSTATE_SCAN_FILES += "*.cmake" |
| 29 | 36 | ||
| 30 | PACKAGECONFIG ??= "" | 37 | PACKAGECONFIG ??= "glog" |
| 31 | 38 | ||
| 32 | # suitesparse* recipes will be in meta-ros layer | 39 | # suitesparse* recipes will be in meta-ros layer |
| 33 | PACKAGECONFIG[suitesparse] = "-DSUITESPARSE=ON,-DSUITESPARSE=OFF,suitesparse-config suitesparse-amd suitesparse-camd suitesparse-colamd suitesparse-ccolamd suitesparse-cholmod suitesparse-metis suitesparse-spqr" | 40 | PACKAGECONFIG[suitesparse] = "-DSUITESPARSE=ON,-DSUITESPARSE=OFF,suitesparse-config suitesparse-amd suitesparse-camd suitesparse-colamd suitesparse-ccolamd suitesparse-cholmod suitesparse-metis suitesparse-spqr" |
| 34 | PACKAGECONFIG[cxsparse] = "-DCXSPARSE=ON,-DCXSPARSE=OFF,suitesparse-cxsparse" | 41 | PACKAGECONFIG[cxsparse] = "-DCXSPARSE=ON,-DCXSPARSE=OFF,suitesparse-cxsparse" |
| 42 | PACKAGECONFIG[glog] = "-DMINIGLOG=OFF,-DMINIGLOG=ON,glog" | ||
| 35 | PACKAGECONFIG[lapack] = "-DLAPACK=ON,-DLAPACK=OFF,lapack" | 43 | PACKAGECONFIG[lapack] = "-DLAPACK=ON,-DLAPACK=OFF,lapack" |
| 36 | 44 | ||
| 37 | # Only a static library and headers are created | 45 | # Only a static library and headers are created |
