-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.toml
37 lines (31 loc) · 1 KB
/
Makefile.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
[config]
skip_core_tasks = true
default_to_workspace = false
[env]
REPOSITORY_ROOT = { script = [ "git rev-parse --show-superproject-working-tree --show-toplevel" ] }
[tasks.windows_build]
script_runner = "@shell"
condition = { env_set = ["VCPKG_INSTALLATION_ROOT", "CMAKE_GENERATOR"] }
script = '''
cmake -B build -S . -DBUILD_TESTING=ON -G "${CMAKE_GENERATOR}" -A x64 -DCMAKE_TOOLCHAIN_FILE=${VCPKG_INSTALLATION_ROOT}/scripts/buildsystems/vcpkg.cmake
cmake --build build
'''
[tasks.other_build]
script_runner = "@shell"
condition = { env_set = ["VCPKG_INSTALLATION_ROOT", "CXX"] }
script = [
"cmake -B build -S . -DBUILD_TESTING=ON -DCMAKE_CXX_COMPILER=${CXX} -DCMAKE_TOOLCHAIN_FILE=${VCPKG_INSTALLATION_ROOT}/scripts/buildsystems/vcpkg.cmake",
"cmake --build build",
]
[tasks.build]
windows_alias = "windows_build"
alias = "other_build"
[tasks.ctest]
script_runner = "@shell"
cwd = "build"
script = "ctest"
[tasks.test]
dependencies = [
"build",
"ctest",
]