aboutsummaryrefslogtreecommitdiff
path: root/cmake/Modules/FindSQLite3.cmake
diff options
context:
space:
mode:
authorShadowNinja <shadowninja@minetest.net>2015-01-04 13:48:23 -0500
committerShadowNinja <shadowninja@minetest.net>2015-01-08 16:34:42 -0500
commita3db918f7834b859e80175125610e503bee0af35 (patch)
tree76edee21e5397ee2bf73869dc5cca285a614a2c4 /cmake/Modules/FindSQLite3.cmake
parentd8cf64a2029dd8122d5ba0830c0f3dae9db95cf7 (diff)
downloadminetest-a3db918f7834b859e80175125610e503bee0af35.tar.gz
minetest-a3db918f7834b859e80175125610e503bee0af35.tar.bz2
minetest-a3db918f7834b859e80175125610e503bee0af35.zip
Remove included SQLite3
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)
+