/[soft]/mgasvnstats/trunk/cmake/modules/FindPugiXML.cmake
ViewVC logotype

Annotation of /mgasvnstats/trunk/cmake/modules/FindPugiXML.cmake

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6856 - (hide annotations) (download)
Tue Dec 25 14:18:23 2012 UTC (11 years, 3 months ago) by kamil
File size: 660 byte(s)
Initial import.
1 kamil 6856 # Copyrigt 2012 Kamil Rytarowski <kamil AT mageia DOT org>
2     #
3     # This Source Code Form is subject to the terms of the Mozilla Public
4     # License, v. 2.0. If a copy of the MPL was not distributed with this
5     # file, You can obtain one at http://mozilla.org/MPL/2.0/.
6    
7     find_path(PugiXML_INCLUDE_DIR /usr/include)
8    
9     find_library(PugiXML_LIBRARY
10     NAMES
11     "pugixml"
12     PATHS
13     /usr/lib
14     )
15    
16     if(PugiXML_LIBRARY AND PugiXML_INCLUDE_DIR)
17     set(PugiXML_FOUND 1)
18     mark_as_advanced(PugiXML_LIBRARY PugiXML_INCLUDE_DIR)
19     else()
20     set(PugiXML_FOUND 0)
21     endif()
22    
23     if(NOT PugiXML_FOUND)
24     if(PugiXML_FIND_REQUIRED)
25     message(FATAL_ERROR "PugiXML was not found.")
26     endif()
27     endif()

  ViewVC Help
Powered by ViewVC 1.1.30