OSDN Git Service

use proper type for written bytes count in QFileSystemEngine::copyFile()
[kde/Katie.git] / cmake / modules / FindSqlite.cmake
1 # - Try to find SQL database engine
2 # Once done this will define
3 #
4 #  SQLITE_FOUND - system has SQL database engine
5 #  SQLITE_INCLUDES - the SQL database engine include directory
6 #  SQLITE_LIBRARIES - the libraries needed to use SQL database engine
7 #
8 # Copyright (C) 2015, Ivailo Monev, <xakepa10@gmail.com>
9 #
10 # Redistribution and use is allowed according to the terms of the BSD license.
11
12 include(FindPkgConfig)
13 include(FindPackageHandleStandardArgs)
14
15 pkg_check_modules(PC_SQLITE QUIET sqlite3)
16
17 find_path(SQLITE_INCLUDES
18     NAMES sqlite3.h
19     PATH_SUFFIXES sqlite3
20     HINTS $ENV{SQLITEDIR}/include ${PC_SQLITE_INCLUDEDIR}
21 )
22
23 find_library(SQLITE_LIBRARIES
24     NAMES sqlite3
25     HINTS $ENV{SQLITEDIR}/lib ${PC_SQLITE_LIBDIR}
26 )
27
28 find_package_handle_standard_args(SQLite
29     VERSION_VAR PC_SQLITE_VERSION
30     REQUIRED_VARS SQLITE_LIBRARIES SQLITE_INCLUDES
31 )
32
33 mark_as_advanced(SQLITE_INCLUDES SQLITE_LIBRARIES)