summaryrefslogtreecommitdiffstats
path: root/project/cmake/modules/FindSqlite3.cmake
diff options
context:
space:
mode:
authormanuel <manuel@mausz.at>2016-03-08 21:02:53 +0100
committermanuel <manuel@mausz.at>2016-03-08 21:02:53 +0100
commit9fc8b732737f139d3e466510d75668ab45578960 (patch)
tree76db9bf5cb8cc869be908a5ed3d6f4cca3e3608a /project/cmake/modules/FindSqlite3.cmake
parentb75e2659df11c23aa921d2eed83c23adc282ed27 (diff)
downloadkodi-pvr-build-9fc8b732737f139d3e466510d75668ab45578960.tar.gz
kodi-pvr-build-9fc8b732737f139d3e466510d75668ab45578960.tar.bz2
kodi-pvr-build-9fc8b732737f139d3e466510d75668ab45578960.zip
sync with upstream
Diffstat (limited to 'project/cmake/modules/FindSqlite3.cmake')
-rw-r--r--project/cmake/modules/FindSqlite3.cmake19
1 files changed, 19 insertions, 0 deletions
diff --git a/project/cmake/modules/FindSqlite3.cmake b/project/cmake/modules/FindSqlite3.cmake
new file mode 100644
index 0000000..a47944e
--- /dev/null
+++ b/project/cmake/modules/FindSqlite3.cmake
@@ -0,0 +1,19 @@
1# - Try to find SQLITE3
2# Once done this will define
3#
4# SQLITE3_FOUND - system has sqlite3
5# SQLITE3_INCLUDE_DIRS - the sqlite3 include directory
6# SQLITE3_LIBRARIES - The sqlite3 libraries
7
8if(PKG_CONFIG_FOUND)
9 pkg_check_modules (SQLITE3 sqlite3)
10 list(APPEND SQLITE3_INCLUDE_DIRS ${SQLITE3_INCLUDEDIR})
11else()
12 find_path(SQLITE3_INCLUDE_DIRS sqlite3.h)
13 find_library(SQLITE3_LIBRARIES sqlite3)
14endif()
15
16include(FindPackageHandleStandardArgs)
17find_package_handle_standard_args(Sqlite3 DEFAULT_MSG SQLITE3_INCLUDE_DIRS SQLITE3_LIBRARIES)
18
19mark_as_advanced(SQLITE3_INCLUDE_DIRS SQLITE3_LIBRARIES)