hana.sublime-project 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. {
  2. "folders":
  3. [
  4. {
  5. "follow_symlinks": true,
  6. "path": "."
  7. }
  8. ],
  9. "build_systems":
  10. [
  11. {
  12. "name": "[Hana] Build current file",
  13. "selector": "source.c++",
  14. "working_dir": "$project_path/build",
  15. "cmd": ["ruby"
  16. , "-r", "pathname"
  17. , "-e", "project = Pathname.new('${project_path}')"
  18. , "-e", "file = Pathname.new('${file}').relative_path_from(project)"
  19. , "-e", "target = file.sub_ext('').to_s.gsub('/', '.')"
  20. , "-e", "system('/usr/local/bin/cmake', '--build', '$project_path/build', '--target', target)"
  21. ],
  22. "variants": [
  23. {
  24. "name": "Primary Quick Build",
  25. "cmd": ["ruby"
  26. , "-r", "pathname"
  27. , "-e", "project = Pathname.new('${project_path}')"
  28. , "-e", "file = Pathname.new('${file}').relative_path_from(project)"
  29. , "-e", "target = file.sub_ext('').to_s.gsub('/', '.')"
  30. , "-e", "system('/usr/local/bin/cmake', '--build', '$project_path/build', '--target', target)"
  31. , "-e", "system('/usr/local/bin/ctest', '-V', '--output-on-failure', '-R', target)"
  32. ]
  33. }
  34. ]
  35. }
  36. ]
  37. }