summaryrefslogtreecommitdiffstats
path: root/cmake/modules/FindYuidoc.cmake
diff options
context:
space:
mode:
authorPetre Eftime <[email protected]>2015-11-26 13:49:50 +0200
committerPetre Eftime <[email protected]>2015-11-27 14:45:15 +0200
commit8bd02d2a96c31eac64fb4144cf928462c74f4623 (patch)
tree7be6c3b1bd26d383da55b46facc89acf1911b31d /cmake/modules/FindYuidoc.cmake
Version 0.2.0v0.2.0
Signed-off-by: Petre Eftime <[email protected]>
Diffstat (limited to 'cmake/modules/FindYuidoc.cmake')
-rw-r--r--cmake/modules/FindYuidoc.cmake21
1 files changed, 21 insertions, 0 deletions
diff --git a/cmake/modules/FindYuidoc.cmake b/cmake/modules/FindYuidoc.cmake
new file mode 100644
index 00000000..23175ce2
--- /dev/null
+++ b/cmake/modules/FindYuidoc.cmake
@@ -0,0 +1,21 @@
+find_program (YUIDOC_EXECUTABLE NAMES yuidoc
+ HINTS $ENV{YUIDOC_DIR}
+ PATHS usr usr/local
+ PATH_SUFFIXES bin
+ DOC "Yuidoc documentation generator"
+)
+
+include (FindPackageHandleStandardArgs)
+
+find_package_handle_standard_args (Yuidoc DEFAULT_MSG
+ YUIDOC_EXECUTABLE
+)
+
+# Get Yuidoc version
+if (YUIDOC_EXECUTABLE)
+ execute_process(COMMAND ${YUIDOC_EXECUTABLE} --version
+ ERROR_VARIABLE YUIDOC_VERSION)
+ message ("INFO - Yuidoc version is " ${YUIDOC_VERSION})
+endif ()
+
+mark_as_advanced (YUIDOC_EXECUTABLE)