Synchronize with trunk's revision r57629.
[reactos.git] / dll / 3rdparty / libtiff / CMakeLists.txt
1
2 add_definitions(
3 -DWIN32
4 -DNDEBUG
5 -DBUILD_LIBTIFF_DLL
6 -DDLL_EXPORT
7 -DUSE_WIN32_FILEIO)
8
9 include_directories(
10 ${REACTOS_SOURCE_DIR}/include/reactos/libs/libtiff
11 ${REACTOS_SOURCE_DIR}/include/reactos/libs/zlib)
12
13 add_library(libtiff SHARED
14 mkg3states.c
15 tif_aux.c
16 tif_close.c
17 tif_codec.c
18 tif_color.c
19 tif_compress.c
20 tif_dir.c
21 tif_dirinfo.c
22 tif_dirread.c
23 tif_dirwrite.c
24 tif_dumpmode.c
25 tif_error.c
26 tif_extension.c
27 tif_fax3.c
28 tif_fax3sm.c
29 tif_flush.c
30 tif_getimage.c
31 tif_jbig.c
32 tif_jpeg.c
33 tif_luv.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_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
53 set_module_type(libtiff win32dll)
54 target_link_libraries(libtiff zlib getopt)
55 add_importlibs(libtiff user32 msvcrt kernel32 ntdll)
56 add_dependencies(libtiff psdk)
57 add_cd_file(TARGET libtiff DESTINATION reactos/system32 FOR all)
58
59 if(NOT MSVC)
60 allow_warnings(libtiff)
61 endif()