~ubuntu-branches/ubuntu/precise/cmake/precise-proposed

« back to all changes in this revision

Viewing changes to Modules/FindLibXslt.cmake

  • Committer: Package Import Robot
  • Author(s): Rohan Garg
  • Date: 2012-01-17 23:04:07 UTC
  • mfrom: (1.13.6)
  • Revision ID: package-import@ubuntu.com-20120117230407-14cdb6g0mxmh29bl
Tags: 2.8.7-0ubuntu1
* New upstream release
  - Add increase_ctest_test_timeout.diff to increase timeout period
    of a test

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
#  LIBXSLT_INCLUDE_DIR - the LibXslt include directory
6
6
#  LIBXSLT_LIBRARIES - Link these to LibXslt
7
7
#  LIBXSLT_DEFINITIONS - Compiler switches required for using LibXslt
 
8
# Additionally, the following two variables are set (but not required for using xslt):
 
9
#  LIBXSLT_EXSLT_LIBRARIES - Link to these if you need to link against the exslt library
 
10
#  LIBXSLT_XSLTPROC_EXECUTABLE - Contains the full path to the xsltproc executable if found
8
11
 
9
12
#=============================================================================
10
13
# Copyright 2006-2009 Kitware, Inc.
23
26
# use pkg-config to get the directories and then use these values
24
27
# in the FIND_PATH() and FIND_LIBRARY() calls
25
28
FIND_PACKAGE(PkgConfig)
26
 
PKG_CHECK_MODULES(PC_LIBXSLT libxslt)
 
29
PKG_CHECK_MODULES(PC_LIBXSLT QUIET libxslt)
27
30
SET(LIBXSLT_DEFINITIONS ${PC_LIBXSLT_CFLAGS_OTHER})
28
31
 
29
32
FIND_PATH(LIBXSLT_INCLUDE_DIR NAMES libxslt/xslt.h
38
41
   ${PC_LIBXSLT_LIBRARY_DIRS}
39
42
  )
40
43
 
41
 
# handle the QUIETLY and REQUIRED arguments and set LIBXML2_FOUND to TRUE if 
 
44
FIND_LIBRARY(LIBXSLT_EXSLT_LIBRARY NAMES exslt libexslt
 
45
    HINTS
 
46
    ${PC_LIBXSLT_LIBDIR}
 
47
    ${PC_LIBXSLT_LIBRARY_DIRS}
 
48
  )
 
49
 
 
50
SET(LIBXSLT_EXSLT_LIBRARIES ${LIBXSLT_EXSLT_LIBRARY} )
 
51
 
 
52
FIND_PROGRAM(LIBXSLT_XSLTPROC_EXECUTABLE xsltproc)
 
53
 
 
54
# handle the QUIETLY and REQUIRED arguments and set LIBXML2_FOUND to TRUE if
42
55
# all listed variables are TRUE
43
56
INCLUDE(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
44
57
FIND_PACKAGE_HANDLE_STANDARD_ARGS(LibXslt DEFAULT_MSG LIBXSLT_LIBRARIES LIBXSLT_INCLUDE_DIR)
45
58
 
46
 
MARK_AS_ADVANCED(LIBXSLT_INCLUDE_DIR LIBXSLT_LIBRARIES)
47
 
 
 
59
MARK_AS_ADVANCED(LIBXSLT_INCLUDE_DIR
 
60
                 LIBXSLT_LIBRARIES
 
61
                 LIBXSLT_EXSLT_LIBRARY
 
62
                 LIBXSLT_XSLTPROC_EXECUTABLE)