98cf7a662966d36627d8505e9c074f8157151fe8
[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 spec2def(windowscodecs ${CMAKE_CURRENT_SOURCE_DIR}/windowscodecs.spec ${CMAKE_CURRENT_BINARY_DIR}/windowscodecs.def)
15
16 add_library(windowscodecs SHARED
17 bmpdecode.c
18 bmpencode.c
19 clsfactory.c
20 converter.c
21 fliprotate.c
22 gifformat.c
23 icoformat.c
24 imgfactory.c
25 info.c
26 jpegformat.c
27 main.c
28 palette.c
29 pngformat.c
30 propertybag.c
31 regsvr.c
32 stream.c
33 tiffformat.c
34 ungif.c
35 version.rc)
36
37 set_module_type(windowscodecs win32dll)
38
39 target_link_libraries(windowscodecs
40 ${CMAKE_CURRENT_BINARY_DIR}/windowscodecs.def
41 wine)
42
43 add_importlibs(windowscodecs uuid ole32 shlwapi advapi32 msvcrt kernel32 ntdll)
44 add_dependencies(windowscodecs windowscodecs_def)