summaryrefslogtreecommitdiffstats
path: root/project/cmake/modules/FindSqlite3.cmake
diff options
context:
space:
mode:
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)