[CMAKE]
[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 set_rc_compiler()
14
15 spec2def(windowscodecs.dll windowscodecs.spec)
16
17 list(APPEND SOURCE
18 bmpdecode.c
19 bmpencode.c
20 clsfactory.c
21 converter.c
22 fliprotate.c
23 gifformat.c
24 icoformat.c
25 imgfactory.c
26 info.c
27 jpegformat.c
28 main.c
29 palette.c
30 pngformat.c
31 propertybag.c
32 regsvr.c
33 stream.c
34 tiffformat.c
35 ungif.c
36 version.rc
37 ${CMAKE_CURRENT_BINARY_DIR}/windowscodecs_stubs.c
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_cd_file(TARGET windowscodecs DESTINATION reactos/system32 FOR all)