aboutsummaryrefslogtreecommitdiff
path: root/cmake/Modules/FindSQLite3.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/Modules/FindSQLite3.cmake')
-rw-r--r--cmake/Modules/FindSQLite3.cmake9
1 files changed, 9 insertions, 0 deletions
diff --git a/cmake/Modules/FindSQLite3.cmake b/cmake/Modules/FindSQLite3.cmake
new file mode 100644
index 000000000..b23553a80
--- /dev/null
+++ b/cmake/Modules/FindSQLite3.cmake
@@ -0,0 +1,9 @@
+mark_as_advanced(SQLITE3_LIBRARY SQLITE3_INCLUDE_DIR)
+
+find_path(SQLITE3_INCLUDE_DIR sqlite3.h)
+
+find_library(SQLITE3_LIBRARY NAMES sqlite3)
+
+include(FindPackageHandleStandardArgs)
+find_package_handle_standard_args(SQLite3 DEFAULT_MSG SQLITE3_LIBRARY SQLITE3_INCLUDE_DIR)
+