[CMAKE]
[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 -D_DLL -D__USE_CRTIMP)
9
10 include_directories(
11 ${REACTOS_SOURCE_DIR}/include/reactos/libs/libtiff
12 ${REACTOS_SOURCE_DIR}/include/reactos/libs/zlib)
13
14 add_library(libtiff SHARED
15 mkg3states.c
16 tif_aux.c
17 tif_close.c
18 tif_codec.c
19 tif_color.c
20 tif_compress.c
21 tif_dir.c
22 tif_dirinfo.c
23 tif_dirread.c
24 tif_dirwrite.c
25 tif_dumpmode.c
26 tif_error.c
27 tif_extension.c
28 tif_fax3.c
29 tif_fax3sm.c
30 tif_flush.c
31 tif_getimage.c
32 tif_jbig.c
33 tif_jpeg.c
34 tif_luv.c
35 tif_lzw.c
36 tif_next.c
37 tif_ojpeg.c
38 tif_open.c
39 tif_packbits.c
40 tif_pixarlog.c
41 tif_predict.c
42 tif_print.c
43 tif_read.c
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
54 set_entrypoint(libtiff 0)
55
56 target_link_libraries(libtiff mingw_common zlib getopt)
57
58 add_importlibs(libtiff user32 msvcrt kernel32)
59
60 add_dependencies(libtiff psdk)
61
62 add_cd_file(TARGET libtiff DESTINATION reactos/system32)