2 # Once done this will define
4 # DUMB_FOUND - system has DUMB
5 # DUMB_INCLUDE_DIRS - the DUMB include directory
6 # DUMB_LIBRARIES - Link these to use DUMB
8 # Copyright © 2006 Wengo
9 # Copyright © 2009 Guillaume Martres
11 # Redistribution and use is allowed according to the terms of the New
13 # For details see the accompanying COPYING-CMAKE-SCRIPTS file.
16 find_path(DUMB_INCLUDE_DIR NAMES dumb.h)
18 find_library(DUMB_LIBRARY NAMES dumb)
20 INCLUDE(FindPackageHandleStandardArgs)
21 # handle the QUIETLY and REQUIRED arguments and set DUMB_FOUND to TRUE if all
22 # listed variables are TRUE
23 FIND_PACKAGE_HANDLE_STANDARD_ARGS(DUMB DEFAULT_MSG DUMB_LIBRARY DUMB_INCLUDE_DIR)
26 set(DUMB_INCLUDE_DIRS ${DUMB_INCLUDE_DIR})
27 set(DUMB_LIBRARIES ${DUMB_LIBRARY})