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

0001 # - Try to find Sqlite
0002 # Once done this will define
0003 #
0004 #  SQLITE_FOUND - system has Sqlite
0005 #  SQLITE_INCLUDE_DIR - the Sqlite include directory
0006 #  SQLITE_LIBRARIES - Link these to use Sqlite
0007 #  SQLITE_DEFINITIONS - Compiler switches required for using Sqlite
0008 # Redistribution and use is allowed according to the terms of the BSD license.
0009 # For details see the accompanying COPYING-CMAKE-SCRIPTS file.
0010 #
0011 
0012 
0013 # Copyright (c) 2008, Gilles Caulier, <caulier.gilles@gmail.com>
0014 #
0015 # Redistribution and use is allowed according to the terms of the BSD license.
0016 # For details see the accompanying COPYING-CMAKE-SCRIPTS file.
0017 
0018 if ( SQLITE_INCLUDE_DIR AND SQLITE_LIBRARIES )
0019    # in cache already
0020    SET(Sqlite_FIND_QUIETLY TRUE)
0021 endif ( SQLITE_INCLUDE_DIR AND SQLITE_LIBRARIES )
0022 
0023 # use pkg-config to get the directories and then use these values
0024 # in the FIND_PATH() and FIND_LIBRARY() calls
0025 if( NOT WIN32 )
0026   find_package(PkgConfig)
0027 
0028   pkg_check_modules(PC_SQLITE QUIET sqlite3)
0029 
0030   set(SQLITE_DEFINITIONS ${PC_SQLITE_CFLAGS_OTHER})
0031 endif( NOT WIN32 )
0032 
0033 find_path(SQLITE_INCLUDE_DIR NAMES sqlite3.h
0034   PATHS
0035   ${PC_SQLITE_INCLUDEDIR}
0036   ${PC_SQLITE_INCLUDE_DIRS}
0037 )
0038 
0039 find_library(SQLITE_LIBRARIES NAMES sqlite3
0040   PATHS
0041   ${PC_SQLITE_LIBDIR}
0042   ${PC_SQLITE_LIBRARY_DIRS}
0043 )
0044 
0045 include(FindPackageHandleStandardArgs)
0046 find_package_handle_standard_args(Sqlite DEFAULT_MSG SQLITE_INCLUDE_DIR SQLITE_LIBRARIES )
0047 
0048 # show the SQLITE_INCLUDE_DIR and SQLITE_LIBRARIES variables only in the advanced view
0049 mark_as_advanced(SQLITE_INCLUDE_DIR SQLITE_LIBRARIES )
0050