forked from gbionics/serial_cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpixi.toml
More file actions
43 lines (38 loc) · 1.36 KB
/
pixi.toml
File metadata and controls
43 lines (38 loc) · 1.36 KB
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
[project]
authors = ["Silvio Traversaro <silvio@traversaro.it>", ""]
channels = ["conda-forge"]
name = "serial_cpp"
platforms = ["win-64", "linux-64", "osx-arm64", "linux-aarch64"]
[target.win.activation.env]
CMAKE_INSTALL_PREFIX = "%CONDA_PREFIX%\\Library"
[target.unix.activation.env]
CMAKE_INSTALL_PREFIX = "$CONDA_PREFIX"
[tasks]
configure = { cmd = [
"cmake",
"-DCMAKE_BUILD_TYPE=Release",
"-DBUILD_TESTING:BOOL=ON",
"-DBUILD_SHARED_LIBS: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_local = { cmd = "ctest --test-dir .build --build-config Release", depends-on = ["build"] }
install = { cmd = ["cmake", "--install", ".build", "--config", "Release"], depends-on = ["build"] }
check_package_installed = { cmd = ["cmake-package-check", "serial_cpp", "--targets", "serial_cpp::serial_cpp"], depends-on = ["install"] }
uninstall = { cmd = ["cmake", "--build", ".build", "--target", "uninstall"]}
test = { cmd = "echo 'All tests completed'", depends-on = ["test_local", "check_package_installed"] }
[dependencies]
cxx-compiler = "*"
cmake = "*"
ninja = "*"
pkg-config = "*"
gtest = "*"
cmake-package-check = "*"