diff options
author | Jörg Mayer <jmayer@loplof.de> | 2009-09-07 07:26:43 +0000 |
---|---|---|
committer | Jörg Mayer <jmayer@loplof.de> | 2009-09-07 07:26:43 +0000 |
commit | 9500e97cb3a53a304c6d2b8e92f26e951511be52 (patch) | |
tree | 2fdae151d5d9fa3eb03f28aee4f9fe92b955d514 /cmake/modules/FindHtmlViewer.cmake | |
parent | 7a413a615a6304357d57d1f756551e9eadb874c0 (diff) | |
download | wireshark-9500e97cb3a53a304c6d2b8e92f26e951511be52.tar.gz |
- Undo the PACKAGELIST WSWIN32 stuff in CMakeLists.txt:
That's what the packages are for, so instead of creating
WSWIN32, the stuff should probably go into the GLIB2
package.
- libwireshark now compiles - no time to add linking with
it until tonight
svn path=/trunk/; revision=29756
Diffstat (limited to 'cmake/modules/FindHtmlViewer.cmake')
-rw-r--r-- | cmake/modules/FindHtmlViewer.cmake | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/cmake/modules/FindHtmlViewer.cmake b/cmake/modules/FindHtmlViewer.cmake new file mode 100644 index 0000000000..6753dec9ef --- /dev/null +++ b/cmake/modules/FindHtmlViewer.cmake @@ -0,0 +1,33 @@ +# - Find an html viewer program +# +# HTML_VIEWER_EXECUTABLE - the full path to perl +# HTML_VIEWER_FOUND - If false, don't attempt to use perl. + +INCLUDE(FindCygwin) + +FIND_PROGRAM(HTML_VIEWER_EXECUTABLE + NAMES + xdg-open + mozilla + htmlview + PATHS + ${CYGWIN_INSTALL_PATH}/bin + /bin + /usr/bin + /usr/local/bin + /sbin +) + +IF (NOT HTML_VIEWER_EXECUTABLE) + MESSAGE(FATAL_ERROR "HTML_VIEWER not found - aborting") +ELSE () + SET (HTML_VIEWER_FOUND "YES") + MESSAGE(STATUS "Found HTML_VIEWER: ${HTML_VIEWER_EXECUTABLE}") +ENDIF () + + +# For compat with configure +SET(HTML_VIEWER ${HTML_VIEWER_EXECUTABLE}) + + +MARK_AS_ADVANCED(HTML_VIEWER_EXECUTABLE) |