root / trunk / extensions / ext3Dgui / buildman / plugins-data / depman / CMakeModules / FindPCRE.cmake @ 26254
History | View | Annotate | Download (467 Bytes)
1 |
# Locate PCRE |
---|---|
2 |
# This module defines |
3 |
# PCRE_LIBRARY |
4 |
# PCRE_FOUND, if false, do not try to link to PCRE |
5 |
# PCRE_INCLUDE_DIRS, where to find the headers |
6 |
|
7 |
FIND_PATH(PCRE_INCLUDE_DIR pcre.h) |
8 |
MARK_AS_ADVANCED(PCRE_INCLUDE_DIR) |
9 |
|
10 |
FIND_LIBRARY(PCRE_LIBRARY pcre) |
11 |
MARK_AS_ADVANCED(PCRE_LIBRARY) |
12 |
|
13 |
SET(PCRE_FOUND "NO") |
14 |
IF(PCRE_INCLUDE_DIR AND PCRE_LIBRARY) |
15 |
SET(PCRE_FOUND "YES") |
16 |
IF(WIN32) |
17 |
ADD_DEFINITIONS(-DPCRE_STATIC) |
18 |
ENDIF(WIN32) |
19 |
ENDIF(PCRE_INCLUDE_DIR AND PCRE_LIBRARY) |
20 |
|