summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeFindCodeBlocks.cmake
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2009-05-12 19:11:16 (GMT)
committerAlexander Neundorf <neundorf@kde.org>2009-05-12 19:11:16 (GMT)
commitea8c04a4f89c0e86e58fae3b5b746fd5a067d566 (patch)
treea59f4af1cdb474c85bffccc06e3e3562f883ea7c /Modules/CMakeFindCodeBlocks.cmake
parentc28926de5d5c3cf40a98a89af31f742d5502663b (diff)
downloadCMake-ea8c04a4f89c0e86e58fae3b5b746fd5a067d566.zip
CMake-ea8c04a4f89c0e86e58fae3b5b746fd5a067d566.tar.gz
CMake-ea8c04a4f89c0e86e58fae3b5b746fd5a067d566.tar.bz2
STYLE: rename the files from CMake<GENERATOR>.cmake to
CMakeFind<GENERATOR>.cmake, so it is more consistent e.g. with CMakeFindXcode.cmake Alex
Diffstat (limited to 'Modules/CMakeFindCodeBlocks.cmake')
-rw-r--r--Modules/CMakeFindCodeBlocks.cmake9
1 files changed, 9 insertions, 0 deletions
diff --git a/Modules/CMakeFindCodeBlocks.cmake b/Modules/CMakeFindCodeBlocks.cmake
new file mode 100644
index 0000000..8f54b75
--- /dev/null
+++ b/Modules/CMakeFindCodeBlocks.cmake
@@ -0,0 +1,9 @@
+# This file is included in CMakeSystemSpecificInformation.cmake if
+# the CodeBlocks extra generator has been selected.
+
+FIND_PROGRAM(CMAKE_CODEBLOCKS_EXECUTABLE NAMES codeblocks DOC "The CodeBlocks executable")
+
+IF(CMAKE_CODEBLOCKS_EXECUTABLE)
+ SET(CMAKE_OPEN_PROJECT_COMMAND "${CMAKE_CODEBLOCKS_EXECUTABLE} <PROJECT_FILE>" )
+ENDIF(CMAKE_CODEBLOCKS_EXECUTABLE)
+