Warning, /frameworks/kdelibs4support/cmake/modules/FindBerkeleyDB.cmake is written in an unsupported language. File is not indexed.

0001 # - Try to find Berkeley DB
0002 # Once done this will define
0003 #
0004 #  BERKELEY_DB_FOUND - system has Berkeley DB
0005 #  BERKELEY_DB_INCLUDE_DIR - the Berkeley DB include directory
0006 #  BERKELEY_DB_LIBRARIES - Link these to use Berkeley DB
0007 #  BERKELEY_DB_DEFINITIONS - Compiler switches required for using Berkeley DB
0008 
0009 # Copyright (c) 2006, Alexander Dymo, <adymo@kdevelop.org>
0010 #
0011 # Redistribution and use is allowed according to the terms of the BSD license.
0012 # For details see the accompanying COPYING-CMAKE-SCRIPTS file.
0013 
0014 find_path(BERKELEY_DB_INCLUDE_DIR db.h
0015   /usr/include/db4
0016   /usr/local/include/db4
0017 )
0018 
0019 find_library(BERKELEY_DB_LIBRARIES NAMES db )
0020 
0021 include(FindPackageHandleStandardArgs)
0022 find_package_handle_standard_args(Berkeley "Could not find Berkeley DB >= 4.1" BERKELEY_DB_INCLUDE_DIR BERKELEY_DB_LIBRARIES)
0023 # show the BERKELEY_DB_INCLUDE_DIR and BERKELEY_DB_LIBRARIES variables only in the advanced view
0024 mark_as_advanced(BERKELEY_DB_INCLUDE_DIR BERKELEY_DB_LIBRARIES )
0025