Simplify calculating the source stream offset
[alure.git] / cmake / FindDUMB.cmake
blobda21368c2d60a04a6aba22b2e0ec7865595501a2
1 # - Try to find DUMB
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
12 #  BSD license.
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)
25 if(DUMB_FOUND)
26     set(DUMB_INCLUDE_DIRS ${DUMB_INCLUDE_DIR})
27     set(DUMB_LIBRARIES ${DUMB_LIBRARY})
28 endif(DUMB_FOUND)