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() |