# - Find Dagreater # Find the Dagreater includes and client library # This module defines # DAGREATER_INCLUDE_DIRS, where to find daexplib_pg.h # DAGREATER_LIBRARIES, the libraries needed to use dagreater # DAGREATER_FOUND, If false, do not try to use dagreater # # Copyright (c) 2011, Björn Ricks # # Redistribution and use is allowed according to the terms of the BSD license. # For details see the accompanying COPYING-CMAKE-SCRIPTS file. if(DAGREATER_INCLUDE_DIRS AND DAGREATER_LIBRARIES) set(DAGREATER_FOUND TRUE) else(DAGREATER_INCLUDE_DIRS AND DAGREATER_LIBRARIES) find_path(DAGREATER_INCLUDE_DIRS daexplib_pg.h PATH_SUFFIXES dagreater ) find_library(DAGREATER_LIBRARIES dagreater_pg) if(DAGREATER_INCLUDE_DIRS AND DAGREATER_LIBRARIES) set(DAGREATER_FOUND TRUE) message(STATUS "Found Dagreater: ${DAGREATER_INCLUDE_DIRS}, ${DAGREATER_LIBRARIES}") else(DAGREATER_INCLUDE_DIRS AND DAGREATER_LIBRARIES) set(DAGREATER_FOUND FALSE) if(Dagreater_FIND_REQUIRED) message(FATAL_ERROR "Dagreater not found.") else() message(STATUS "Dagreater not found.") endif() endif(DAGREATER_INCLUDE_DIRS AND DAGREATER_LIBRARIES) mark_as_advanced(DAGREATER_INCLUDE_DIRS DAGREATER_LIBRARIES) endif(DAGREATER_INCLUDE_DIRS AND DAGREATER_LIBRARIES)