Synchronize with trunk r58457.
[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 buf.c
17 c14n.c
18 catalog.c
19 chvalid.c
20 debugXML.c
21 dict.c
22 DOCBparser.c
23 encoding.c
24 entities.c
25 error.c
26 globals.c
27 hash.c
28 HTMLparser.c
29 HTMLtree.c
30 legacy.c
31 list.c
32 nanoftp.c
33 nanohttp.c
34 parser.c
35 parserInternals.c
36 pattern.c
37 relaxng.c
38 SAX.c
39 SAX2.c
40 threads.c
41 tree.c
42 uri.c
43 valid.c
44 xinclude.c
45 xlink.c
46 xmlIO.c
47 xmlmemory.c
48 xmlreader.c
49 xmlregexp.c
50 xmlmodule.c
51 xmlsave.c
52 xmlschemas.c
53 xmlschemastypes.c
54 xmlunicode.c
55 xmlwriter.c
56 xpath.c
57 xpointer.c
58 xmlstring.c)
59
60 add_library(libxml2 ${SOURCE})
61 target_link_libraries(libxml2 oldnames)
62 add_dependencies(libxml2 psdk)
63
64 if(NOT MSVC)
65 add_target_compile_flags(libxml2 "-Wno-format -Wno-pointer-sign")
66 allow_warnings(libxml2)
67 endif()