~ubuntu-branches/ubuntu/quantal/aqsis/quantal

« back to all changes in this revision

Viewing changes to cmake/modules/FindTinyXML.cmake

  • Committer: Bazaar Package Importer
  • Author(s): Fabrice Coutadeur
  • Date: 2009-08-06 04:53:26 UTC
  • mfrom: (1.2.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20090806045326-z6xeaaao62idxcc6
Tags: 1.6.0-0ubuntu1
* New upstream release
* debian/control:
  - changed name of lib package to libaqsis1 instead of aqsis-libsc2a
  - changed name of dev package to libaqsis-dev instead of aqsis-libs-dev
  - Added aqsis-data package
  - Revised summary text according to that specified by the RISpec (Pixar)
* Moved examples installation from aqsis.install to aqsis-data.install
* debian/rules: 
  - added content to binary-indep target
* debian/rules: added explicit name of mime file to force dh_installmime
  to generate postinst and prerm scripts

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Find the tinyxml library.  This isn't set up to find tinyxml on windows
 
2
# platforms, since we expect to only be interested in using an external version
 
3
# of tinyxml on platforms where it comes as a seperate package (eg, fedora
 
4
# linux)
 
5
SET(AQSIS_TINYXML_FOUND 0)
 
6
 
 
7
SET(AQSIS_TINYXML_INCLUDE_SEARCHPATH)
 
8
SET(AQSIS_TINYXML_LIBRARY_NAME tinyxml)
 
9
 
 
10
SET(AQSIS_TINYXML_LIBRARY_DIR CACHE PATH "Semi-colon separated list of paths to search for an external tinyxml library")
 
11
MARK_AS_ADVANCED(AQSIS_TINYXML_LIBRARY_DIR)
 
12
 
 
13
FIND_PATH(AQSIS_TINYXML_INCLUDE_DIR
 
14
                        tinyxml.h
 
15
                        PATHS ${AQSIS_TINYXML_INCLUDE_SEARCHPATH}
 
16
                        DOC "Location of the external tinyxml headers"
 
17
                        )
 
18
MARK_AS_ADVANCED(AQSIS_TINYXML_INCLUDE_DIR)
 
19
 
 
20
FIND_LIBRARY(AQSIS_TINYXML_LIBRARY
 
21
                        NAMES ${AQSIS_TINYXML_LIBRARY_NAME}
 
22
                        PATHS ${AQSIS_TINYXML_LIBRARY_DIR}
 
23
                        DOC "Path to the external tinyxml library"
 
24
                        )
 
25
MARK_AS_ADVANCED(AQSIS_TINYXML_LIBRARY)
 
26
 
 
27
 
 
28
STRING(COMPARE EQUAL "${AQSIS_TINYXML_INCLUDE_DIR}" "AQSIS_TINYXML_INCLUDE-NOTFOUND" AQSIS_TINYXML_INCLUDE_NOTFOUND)
 
29
STRING(COMPARE EQUAL "${AQSIS_TINYXML_LIBRARY}" "AQSIS_TINYXML_LIBRARY-NOTFOUND" AQSIS_TINYXML_LIBRARY_NOTFOUND)
 
30
 
 
31
IF(NOT AQSIS_TINYXML_LIBRARY_NOTFOUND AND NOT AQSIS_TINYXML_INCLUDE_NOTFOUND)
 
32
        SET(AQSIS_TINYXML_FOUND 1)
 
33
ENDIF(NOT AQSIS_TINYXML_LIBRARY_NOTFOUND AND NOT AQSIS_TINYXML_INCLUDE_NOTFOUND)
 
34