forked from boostorg/hana
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hana.sublime-project
38 lines (37 loc) · 1.39 KB
/
hana.sublime-project
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
{
"folders":
[
{
"follow_symlinks": true,
"path": "."
}
],
"build_systems":
[
{
"name": "[Hana] Build current file",
"selector": "source.c++",
"working_dir": "$project_path/build",
"cmd": ["ruby"
, "-r", "pathname"
, "-e", "project = Pathname.new('${project_path}')"
, "-e", "file = Pathname.new('${file}').relative_path_from(project)"
, "-e", "target = file.sub_ext('').to_s.gsub('/', '.')"
, "-e", "system('/usr/local/bin/cmake', '--build', '$project_path/build', '--target', target)"
],
"variants": [
{
"name": "Primary Quick Build",
"cmd": ["ruby"
, "-r", "pathname"
, "-e", "project = Pathname.new('${project_path}')"
, "-e", "file = Pathname.new('${file}').relative_path_from(project)"
, "-e", "target = file.sub_ext('').to_s.gsub('/', '.')"
, "-e", "system('/usr/local/bin/cmake', '--build', '$project_path/build', '--target', target)"
, "-e", "system('/usr/local/bin/ctest', '-V', '--output-on-failure', '-R', target)"
]
}
]
}
]
}