[CMAKE]
[reactos.git] / dll / win32 / msxml3 / CMakeLists.txt
1
2 add_typelib(msxml3_v1 msxml3_v1.idl)
3 add_dependencies(msxml3_v1 stdole2)
4
5 remove_definitions(-D_WIN32_WINNT=0x502)
6 add_definitions(-D_WIN32_WINNT=0x601)
7
8 add_definitions(
9 -D__WINESRC__
10 -D_WINE
11 -DLIBXML_STATIC
12 -D_DLL
13 -D__USE_CRTIMP)
14
15 if(MSVC)
16 add_definitions(/FIwine/typeof.h)
17 endif(MSVC)
18
19 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
20
21 set_rc_compiler()
22 spec2def(msxml3.dll msxml3.spec)
23
24 list(APPEND SOURCE
25 attribute.c
26 comment.c
27 domdoc.c
28 element.c
29 factory.c
30 main.c
31 httprequest.c
32 node.c
33 nodelist.c
34 nodemap.c
35 parseerror.c
36 pi.c
37 queryresult.c
38 regsvr.c
39 schema.c
40 text.c
41 uuid.c
42 xmldoc.c
43 xmlelem.c
44 saxreader.c
45 bsc.c
46 cdata.c
47 dispex.c
48 docfrag.c
49 domimpl.c
50 entityref.c
51 version.rc
52 ${CMAKE_CURRENT_BINARY_DIR}/msxml3_stubs.c
53 ${CMAKE_CURRENT_BINARY_DIR}/msxml3.def)
54
55 add_library(msxml3 SHARED ${SOURCE})
56
57 set_module_type(msxml3 win32dll)
58
59 target_link_libraries(msxml3
60 libxml2
61 uuid
62 wine
63 wineldr)
64
65 add_importlibs(msxml3
66 msvcrt
67 urlmon
68 wininet
69 ws2_32
70 comctl32
71 shell32
72 shlwapi
73 cabinet
74 oleaut32
75 ole32
76 version
77 user32
78 gdi32
79 advapi32
80 kernel32
81 ntdll)
82
83 add_dependencies(msxml3 msxml3_v1)
84 add_cd_file(TARGET msxml3 DESTINATION reactos/system32)