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