1# CMake build for libtiff 2# 3# Copyright © 2015 Open Microscopy Environment / University of Dundee 4# Written by Roger Leigh <rleigh@codelibre.net> 5# 6# Permission to use, copy, modify, distribute, and sell this software and 7# its documentation for any purpose is hereby granted without fee, provided 8# that (i) the above copyright notices and this permission notice appear in 9# all copies of the software and related documentation, and (ii) the names of 10# Sam Leffler and Silicon Graphics may not be used in any advertising or 11# publicity relating to the software without the specific, prior written 12# permission of Sam Leffler and Silicon Graphics. 13# 14# THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 15# EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 16# WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. 17# 18# IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR 19# ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, 20# OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 21# WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 22# LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 23# OF THIS SOFTWARE. 24 25set(indexfile index.html) 26 27set(docfiles 28 libtiff.3tiff.html 29 TIFFbuffer.3tiff.html 30 TIFFClose.3tiff.html 31 TIFFcodec.3tiff.html 32 TIFFcolor.3tiff.html 33 TIFFDataWidth.3tiff.html 34 TIFFError.3tiff.html 35 TIFFFieldDataType.3tiff.html 36 TIFFFieldName.3tiff.html 37 TIFFFieldPassCount.3tiff.html 38 TIFFFieldReadCount.3tiff.html 39 TIFFFieldTag.3tiff.html 40 TIFFFieldWriteCount.3tiff.html 41 TIFFFlush.3tiff.html 42 TIFFGetField.3tiff.html 43 TIFFmemory.3tiff.html 44 TIFFOpen.3tiff.html 45 TIFFPrintDirectory.3tiff.html 46 TIFFquery.3tiff.html 47 TIFFReadDirectory.3tiff.html 48 TIFFReadEncodedStrip.3tiff.html 49 TIFFReadEncodedTile.3tiff.html 50 TIFFReadRawStrip.3tiff.html 51 TIFFReadRawTile.3tiff.html 52 TIFFReadRGBAImage.3tiff.html 53 TIFFReadRGBAStrip.3tiff.html 54 TIFFReadRGBATile.3tiff.html 55 TIFFReadScanline.3tiff.html 56 TIFFReadTile.3tiff.html 57 TIFFRGBAImage.3tiff.html 58 TIFFSetDirectory.3tiff.html 59 TIFFSetField.3tiff.html 60 TIFFsize.3tiff.html 61 TIFFstrip.3tiff.html 62 TIFFswab.3tiff.html 63 TIFFtile.3tiff.html 64 TIFFWarning.3tiff.html 65 TIFFWriteDirectory.3tiff.html 66 TIFFWriteEncodedStrip.3tiff.html 67 TIFFWriteEncodedTile.3tiff.html 68 TIFFWriteRawStrip.3tiff.html 69 TIFFWriteRawTile.3tiff.html 70 TIFFWriteScanline.3tiff.html 71 TIFFWriteTile.3tiff.html 72 fax2ps.1.html 73 fax2tiff.1.html 74 pal2rgb.1.html 75 ppm2tiff.1.html 76 raw2tiff.1.html 77 tiff2bw.1.html 78 tiff2pdf.1.html 79 tiff2ps.1.html 80 tiff2rgba.1.html 81 tiffcmp.1.html 82 tiffcp.1.html 83 tiffcrop.1.html 84 tiffdither.1.html 85 tiffdump.1.html 86 tiffgt.1.html 87 tiffinfo.1.html 88 tiffmedian.1.html 89 tiffset.1.html 90 tiffsplit.1.html) 91 92set(doc_DATA ${indexfile} ${docfiles}) 93 94extra_dist(${doc_DATA}) 95 96install(FILES ${doc_DATA} 97 DESTINATION "${LIBTIFF_DOCDIR}/html/man") 98 99# htmldoc target to regenerate HTML files 100string(REPLACE ";" "^" escaped_docfiles "${docfiles}") 101add_custom_target(htmldoc 102 COMMAND "${CMAKE_COMMAND}" 103 "-DMANSRCDIR=${PROJECT_SOURCE_DIR}/man" 104 "-DHTMLMANDIR=${PROJECT_SOURCE_DIR}/html/man" 105 "-DINDEXFILE=${indexfile}" 106 "-DDOCFILES=${escaped_docfiles}" 107 -P "${CMAKE_CURRENT_SOURCE_DIR}/HtmlDoc.cmake") 108 109