summaryrefslogtreecommitdiff
path: root/cmake/modules/FindCairo.cmake
blob: 9ad0be4c6c92f0d64bb580d95d3a211ed332f22d (plain)
1
2
3
4
5
6
7
8
9
10
11
FILE(TO_CMAKE_PATH "$ENV{CAIRO_DIR}" TRY1_DIR)
FILE(TO_CMAKE_PATH "${CAIRO_DIR}" TRY2_DIR)
FILE(GLOB CAIRO_DIR ${TRY1_DIR} ${TRY2_DIR})

FIND_PATH(CAIRO_INCLUDE_DIR cairo.h
                            PATHS ${CAIRO_DIR}/include /usr/local/include/cairo /usr/include/cairo
                            ENV INCLUDE DOC "Directory containing cairo.h include file")

IF (CAIRO_INCLUDE_DIR)
  SET(CAIRO_FOUND TRUE)
ENDIF (CAIRO_INCLUDE_DIR)