-
Notifications
You must be signed in to change notification settings - Fork 120
/
pixi.toml
59 lines (50 loc) · 1.64 KB
/
pixi.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
[project]
name = "osqp-eigen"
authors = ["Stefano Dafarra <[email protected]", "Giulio Romualdi <[email protected]>"]
# As this version is currently ignored, we do not
# waste effort in mantain it in synch with the value
# specified in CMakeLists.txt
version = "0.0.0"
description = "Simple Eigen-C++ wrapper for OSQP library."
channels = ["conda-forge"]
platforms = ["linux-64", "linux-aarch64", "win-64", "osx-64", "osx-arm64"]
[target.win.activation.env]
CMAKE_INSTALL_PREFIX = "%CONDA_PREFIX%\\Library"
OSQPEIGEN_RUN_Valgrind_tests = "OFF"
[target.unix.activation.env]
CMAKE_INSTALL_PREFIX = "$CONDA_PREFIX"
OSQPEIGEN_RUN_Valgrind_tests = "OFF"
[target.linux.activation.env]
OSQPEIGEN_RUN_Valgrind_tests = "ON"
[tasks]
configure = { cmd = [
"cmake",
"-DCMAKE_BUILD_TYPE=Release",
"-DOSQPEIGEN_RUN_Valgrind_tests=$OSQPEIGEN_RUN_Valgrind_tests",
"-DBUILD_TESTING:BOOL=ON",
# Use the cross-platform Ninja generator
"-G",
"Ninja",
# The source is in the root directory
"-S",
".",
# We wanna build in the .build directory
"-B",
".build",
]}
build = { cmd = "cmake --build .build --config Release", depends_on = ["configure"] }
test = { cmd = "ctest --test-dir .build --build-config Release --output-on-failure", depends_on = ["build"] }
install = { cmd = ["cmake", "--install", ".build", "--config", "Release"], depends_on = ["build"] }
uninstall = { cmd = ["cmake", "--build", ".build", "--target", "uninstall"]}
[dependencies]
cmake = "*"
c-compiler = "*"
cxx-compiler = "*"
ninja = "*"
pkg-config = "*"
libosqp = "*"
eigen = "*"
ycm-cmake-modules = "*"
catch2 = "*"
[target.linux.dependencies]
valgrind = "*"