summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-10-18 13:37:36 (GMT)
committerKitware Robot <kwrobot@kitware.com>2017-10-18 13:37:59 (GMT)
commitb0b94cdec5bb201e64aac4b3877a1a635b9f1119 (patch)
tree5a10cbf8d1fc8fb96c517ae75c6c13637256bc53 /Modules
parent0dba1db9d5d9f2c555c718acde5ec550503fae6f (diff)
parent96d642c7b87e303813b75aaa3412f8e532d2b925 (diff)
downloadCMake-b0b94cdec5bb201e64aac4b3877a1a635b9f1119.zip
CMake-b0b94cdec5bb201e64aac4b3877a1a635b9f1119.tar.gz
CMake-b0b94cdec5bb201e64aac4b3877a1a635b9f1119.tar.bz2
Merge topic 'cmake-open'
96d642c7 cmake-gui: Use cmake::Open to open generated project 5de37a4a cmake: Add --open option for IDE generators Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Ruslan Baratov <ruslan_baratov@yahoo.com> Merge-request: !1337
Diffstat (limited to 'Modules')
-rw-r--r--Modules/CMakeFindSublimeText2.cmake23
1 files changed, 23 insertions, 0 deletions
diff --git a/Modules/CMakeFindSublimeText2.cmake b/Modules/CMakeFindSublimeText2.cmake
new file mode 100644
index 0000000..022d010
--- /dev/null
+++ b/Modules/CMakeFindSublimeText2.cmake
@@ -0,0 +1,23 @@
+# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
+# file Copyright.txt or https://cmake.org/licensing for details.
+
+
+# This file is included in CMakeSystemSpecificInformation.cmake if
+# the Sublime Text 2 extra generator has been selected.
+
+find_program(CMAKE_SUBLIMETEXT_EXECUTABLE
+ NAMES subl3 subl sublime_text
+ PATHS
+ "/Applications/Sublime Text.app/Contents/SharedSupport/bin"
+ "/Applications/Sublime Text 3.app/Contents/SharedSupport/bin"
+ "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin"
+ "$ENV{HOME}/Applications/Sublime Text.app/Contents/SharedSupport/bin"
+ "$ENV{HOME}/Applications/Sublime Text 3.app/Contents/SharedSupport/bin"
+ "$ENV{HOME}/Applications/Sublime Text 2.app/Contents/SharedSupport/bin"
+ "/opt/sublime_text"
+ "/opt/sublime_text_3"
+ DOC "The Sublime Text executable")
+
+if(CMAKE_SUBLIMETEXT_EXECUTABLE)
+ set(CMAKE_OPEN_PROJECT_COMMAND "${CMAKE_SUBLIMETEXT_EXECUTABLE} --project <PROJECT_FILE>" )
+endif()