VirtualBox

source: vbox/trunk/src/libs/libxml2-2.9.2/libxml2-config.cmake.in@ 59049

最後變更 在這個檔案從59049是 58072,由 vboxsync 提交於 9 年 前

libxml 2.9.2 unmodified

  • 屬性 svn:eol-style 設為 native
檔案大小: 1.7 KB
 
1# libxml2-config.cmake
2# --------------------
3#
4# Libxml2 cmake module.
5# THis module sets the following variables:
6#
7# ::
8#
9# LIBXML2_INCLUDE_DIRS - Directory where libxml2 headers are located.
10# LIBXML2_LIBRARIES - xml2 libraries to link against.
11# LIBXML2_VERSION_MAJOR - The major version of libxml2.
12# LIBXML2_VERSION_MINOR - The minor version of libxml2.
13# LIBXML2_VERSION_PATCH - The patch version of libxml2.
14# LIBXML2_VERSION_STRING - version number as a string (ex: "2.3.4")
15# LIBXML2_MODULES - whether libxml2 as dso support
16
17get_filename_component(_libxml2_rootdir ${CMAKE_CURRENT_LIST_DIR}/../../../ ABSOLUTE)
18
19set(LIBXML2_VERSION_MAJOR @LIBXML_MAJOR_VERSION@)
20set(LIBXML2_VERSION_MINOR @LIBXML_MINOR_VERSION@)
21set(LIBXML2_VERSION_MICRO @LIBXML_MICRO_VERSION@)
22set(LIBXML2_VERSION_STRING "@VERSION@")
23set(LIBXML2_INSTALL_PREFIX ${_libxml2_rootdir})
24set(LIBXML2_INCLUDE_DIRS ${_libxml2_rootdir}/include)
25set(LIBXML2_LIBRARY_DIR ${_libxml2_rootdir}/lib)
26set(LIBXML2_LIBRARIES -L${LIBXML2_LIBRARY_DIR} -lxml2)
27
28if(@WITH_THREADS@)
29 find_package(Threads REQUIRED)
30 list(APPEND LIBXML2_LIBRARIES ${CMAKE_THREAD_LIBS_INIT})
31endif()
32
33if(@WITH_LZMA@)
34 find_package(LibLZMA REQUIRED)
35 list(APPEND LIBXML2_LIBRARIES ${LIBLZMA_LIBRARIES})
36 list(APPEND LIBXML2_INCLUDE_DIRS ${LIBLZMA_INCLUDE_DIRS})
37endif()
38
39if(@WITH_ZLIB@)
40 find_package(ZLIB REQUIRED)
41 list(APPEND LIBXML2_LIBRARIES ${ZLIB_LIBRARIES})
42 list(APPEND LIBXML2_INCLUDE_DIRS ${ZLIB_INCLUDE_DIRS})
43endif()
44
45list(APPEND LIBXML2_LIBRARIES @ICU_LIBS@ @ICONV_LIBS@ @M_LIBS@ @WIN32_EXTRA_LIBADD@ @LIBS@)
46
47# whether libxml2 has dso support
48set(LIBXML2_MODULES @WITH_MODULES@)
49
50mark_as_advanced( LIBXML2_INCLUDE_DIRS LIBXML2_LIBRARIES )
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette