1 2add_definitions( 3 -DWIN32 4 -DNDEBUG 5 -DUSE_WIN32_FILEIO) 6 7include_directories( 8 ${REACTOS_SOURCE_DIR}/sdk/include/reactos/libs/libtiff 9 ${REACTOS_SOURCE_DIR}/sdk/include/reactos/libs/zlib) 10 11list(APPEND SOURCE 12 #mkg3states.c 13 tif_aux.c 14 tif_close.c 15 tif_codec.c 16 tif_color.c 17 tif_compress.c 18 tif_dir.c 19 tif_dirinfo.c 20 tif_dirread.c 21 tif_dirwrite.c 22 tif_dumpmode.c 23 tif_error.c 24 tif_extension.c 25 tif_fax3.c 26 tif_fax3sm.c 27 tif_flush.c 28 tif_getimage.c 29 #tif_jbig.c 30 #tif_jpeg.c 31 tif_luv.c 32 #tif_lzma.c 33 tif_lzw.c 34 tif_next.c 35 #tif_ojpeg.c 36 tif_open.c 37 tif_packbits.c 38 tif_pixarlog.c 39 tif_predict.c 40 tif_print.c 41 tif_read.c 42 #tif_stream.cxx 43 tif_strip.c 44 tif_swab.c 45 tif_thunder.c 46 tif_tile.c 47 tif_version.c 48 tif_warning.c 49 tif_win32.c 50 tif_write.c 51 tif_zip.c 52 precomp.h) 53 54add_library(libtiff SHARED ${SOURCE} libtiff.def) 55set_module_type(libtiff win32dll) 56target_link_libraries(libtiff zlib getopt) 57add_importlibs(libtiff user32 msvcrt kernel32 ntdll) 58add_pch(libtiff precomp.h SOURCE) 59add_cd_file(TARGET libtiff DESTINATION reactos/system32 FOR all) 60 61if(NOT MSVC) 62 add_target_compile_flags(libtiff "-Wno-unused-but-set-variable") 63endif() 64