01cfe445b02404a1d99717060bc4486a7d0e2599
[reactos.git] / dll / win32 / windowscodecs / CMakeLists.txt
1
2 add_definitions(-D__WINESRC__)
3
4 remove_definitions(-D_WIN32_WINNT=0x502)
5 add_definitions(-D_WIN32_WINNT=0x600)
6
7 include_directories(
8 ${REACTOS_SOURCE_DIR}/include/reactos/wine
9 ${REACTOS_SOURCE_DIR}/include/reactos/libs/libjpeg
10 ${REACTOS_SOURCE_DIR}/include/reactos/libs/zlib
11 ${REACTOS_SOURCE_DIR}/include/reactos/libs/libpng
12 ${REACTOS_SOURCE_DIR}/include/reactos/libs/libtiff)
13
14 set_rc_compiler()
15
16 spec2def(windowscodecs.dll windowscodecs.spec)
17
18 list(APPEND SOURCE
19 bmpdecode.c
20 bmpencode.c
21 clsfactory.c
22 converter.c
23 fliprotate.c
24 gifformat.c
25 icoformat.c
26 imgfactory.c
27 info.c
28 jpegformat.c
29 main.c
30 palette.c
31 pngformat.c
32 propertybag.c
33 regsvr.c
34 stream.c
35 tiffformat.c
36 ungif.c
37 version.rc
38 ${CMAKE_CURRENT_BINARY_DIR}/windowscodecs.def)
39
40 add_library(windowscodecs SHARED ${SOURCE})
41
42 set_module_type(windowscodecs win32dll)
43
44 target_link_libraries(windowscodecs wine uuid)
45
46 add_importlibs(windowscodecs ole32 shlwapi advapi32 msvcrt kernel32 ntdll)
47 add_importlib_target(windowscodecs.spec)
48
49 add_cab_target(windowscodecs 1)