aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/libxml/CMakeLists.txt
blob: 3efc791fbecb2d9bc19d40450286b6aa7e67f4d0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
find_package(Iconv)
find_package(ZLIB)

add_library(contrib-libs-libxml)
target_compile_options(contrib-libs-libxml PUBLIC
  -DLIBXML_STATIC
)
target_compile_options(contrib-libs-libxml PRIVATE
  -DHAVE_CONFIG_H
)
target_include_directories(contrib-libs-libxml PUBLIC
  ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/include
)
target_include_directories(contrib-libs-libxml PRIVATE
  ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/include
  ${CMAKE_SOURCE_DIR}/contrib/libs/libiconv/include
  ${CMAKE_SOURCE_DIR}/contrib/libs/libxml
)
target_link_libraries(contrib-libs-libxml PUBLIC
  contrib-libs-cxxsupp
  yutil
  Iconv::Iconv
  ZLIB::ZLIB
  library-cpp-charset
)
target_sources(contrib-libs-libxml PRIVATE
  ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/HTMLparser.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/HTMLtree.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/SAX.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/SAX2.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/buf.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/c14n.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/catalog.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/chvalid.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/debugXML.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/dict.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/encoding.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/entities.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/error.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/globals.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/hash.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/legacy.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/list.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/nanoftp.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/nanohttp.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/parser.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/parserInternals.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/pattern.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/rand.cpp
  ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/relaxng.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/schematron.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/threads.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/tree.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/uri.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/valid.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/xinclude.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/xlink.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/xmlIO.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/xmlmemory.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/xmlmodule.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/xmlreader.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/xmlregexp.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/xmlsave.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/xmlschemas.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/xmlschemastypes.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/xmlstring.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/xmlunicode.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/xmlwriter.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/xpath.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/xpointer.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/xzlib.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/yencoding.cpp
)