Skip to content

Commit 6ca9687

Browse files
authored
ceres-solver.org (#3573)
* new file: projects/ceres-solver.org/package.yml * wip * test env
1 parent e6bb036 commit 6ca9687

File tree

1 file changed

+74
-0
lines changed

1 file changed

+74
-0
lines changed
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
distributable:
2+
url: http://ceres-solver.org/ceres-solver-{{version}}.tar.gz
3+
strip-components: 1
4+
versions:
5+
url: http://ceres-solver.org/installation.html
6+
match: /ceres-solver-\d+\.\d+\.\d+\.tar\.gz/
7+
strip:
8+
- /^ceres-solver-/
9+
- /\.tar\.gz/
10+
platforms:
11+
- darwin
12+
- linux/x86-64
13+
# FIXME linux/aarch64 => github.com/oneapi-src/oneTBB (linux/x86-64 only)
14+
dependencies:
15+
eigen.tuxfamily.org: '*'
16+
gflags.github.io: '*'
17+
google.com/glog: '*'
18+
glaros.dtc.umn.edu/metis: '*'
19+
netlib.org/lapack: '*'
20+
people.engr.tamu.edu/davis/suitesparse: '*'
21+
github.com/oneapi-src/oneTBB: '*'
22+
build:
23+
dependencies:
24+
cmake.org: '*'
25+
linux:
26+
gnu.org/gcc: '*'
27+
gnu.org/make: '*'
28+
script:
29+
- cmake -S . -B _build $CMAKE_ARGS
30+
- cmake --build _build
31+
- cmake --install _build
32+
- mkdir -p {{prefix}}/share
33+
- cp -r examples data {{prefix}}/share/
34+
env:
35+
CMAKE_ARGS:
36+
- -DCMAKE_INSTALL_PREFIX="{{prefix}}
37+
- -DCMAKE_INSTALL_LIBDIR=lib
38+
- -DCMAKE_BUILD_TYPE=Release
39+
- -DCMAKE_FIND_FRAMEWORK=LAST
40+
- -DCMAKE_VERBOSE_MAKEFILE=ON
41+
- -Wno-dev
42+
- -DBUILD_TESTING=OFF
43+
- -DBUILD_SHARED_LIBS=ON
44+
- -DBUILD_EXAMPLES=OFF
45+
- -DSUITESPARSE=ON
46+
- -DCXSPARSE=OFF
47+
darwin:
48+
CC: clang
49+
CXX: clang++
50+
LD: clang
51+
test:
52+
dependencies:
53+
cmake.org: '*'
54+
linux:
55+
gnu.org/gcc: '*'
56+
gnu.org/make: '*'
57+
env:
58+
darwin:
59+
CC: clang
60+
CXX: clang++
61+
LD: clang
62+
script:
63+
- cp {{prefix}}/share/examples/helloworld.cc ./
64+
- run: |
65+
cat << EOS > CMakeLists.txt
66+
cmake_minimum_required(VERSION 3.5)
67+
project(helloworld)
68+
find_package(Ceres)
69+
add_executable(helloworld helloworld.cc)
70+
target_link_libraries(helloworld Ceres::ceres)
71+
EOS
72+
- cmake .
73+
- make
74+
- ./helloworld

0 commit comments

Comments
 (0)