Sync with trunk r58033.
[reactos.git] / lib / 3rdparty / libxml2 / CMakeLists.txt
1
2 include_directories(include)
3
4 add_definitions(
5 -D__MINGW32__
6 -DLIBXML_STATIC
7 -D_REENTRANT
8 -DHAVE_WIN32_THREADS
9 -D_MBCS
10 -D_WINDOWS
11 -DWIN32
12 -DHAVE_CONFIG_H
13 -D_DLL -D__USE_CRTIMP)
14
15 list(APPEND SOURCE
16 c14n.c
17 catalog.c
18 chvalid.c
19 debugXML.c
20 dict.c
21 DOCBparser.c
22 encoding.c
23 entities.c
24 error.c
25 globals.c
26 hash.c
27 HTMLparser.c
28 HTMLtree.c
29 legacy.c
30 list.c
31 nanoftp.c
32 nanohttp.c
33 parser.c
34 parserInternals.c
35 pattern.c
36 relaxng.c
37 SAX.c
38 SAX2.c
39 threads.c
40 tree.c
41 uri.c
42 valid.c
43 xinclude.c
44 xlink.c
45 xmlIO.c
46 xmlmemory.c
47 xmlreader.c
48 xmlregexp.c
49 xmlmodule.c
50 xmlsave.c
51 xmlschemas.c
52 xmlschemastypes.c
53 xmlunicode.c
54 xmlwriter.c
55 xpath.c
56 xpointer.c
57 xmlstring.c)
58
59 add_library(libxml2 ${SOURCE})
60 target_link_libraries(libxml2 oldnames)
61 add_dependencies(libxml2 psdk)
62
63 if(NOT MSVC)
64 add_target_compile_flags(libxml2 "-Wno-format -Wno-pointer-sign")
65 allow_warnings(libxml2)
66 endif()