CMakeFindSublimeText2.cmake 1.0 KB

1234567891011121314151617181920212223
  1. # Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. # file Copyright.txt or https://cmake.org/licensing for details.
  3. # This file is included in CMakeSystemSpecificInformation.cmake if
  4. # the Sublime Text 2 extra generator has been selected.
  5. find_program(CMAKE_SUBLIMETEXT_EXECUTABLE
  6. NAMES subl3 subl sublime_text
  7. PATHS
  8. "/Applications/Sublime Text.app/Contents/SharedSupport/bin"
  9. "/Applications/Sublime Text 3.app/Contents/SharedSupport/bin"
  10. "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin"
  11. "$ENV{HOME}/Applications/Sublime Text.app/Contents/SharedSupport/bin"
  12. "$ENV{HOME}/Applications/Sublime Text 3.app/Contents/SharedSupport/bin"
  13. "$ENV{HOME}/Applications/Sublime Text 2.app/Contents/SharedSupport/bin"
  14. "/opt/sublime_text"
  15. "/opt/sublime_text_3"
  16. DOC "The Sublime Text executable")
  17. if(CMAKE_SUBLIMETEXT_EXECUTABLE)
  18. set(CMAKE_OPEN_PROJECT_COMMAND "${CMAKE_SUBLIMETEXT_EXECUTABLE} --project <PROJECT_FILE>" )
  19. endif()