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