From 9fc8b732737f139d3e466510d75668ab45578960 Mon Sep 17 00:00:00 2001 From: manuel Date: Tue, 8 Mar 2016 21:02:53 +0100 Subject: sync with upstream --- project/cmake/modules/FindSqlite3.cmake | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 project/cmake/modules/FindSqlite3.cmake (limited to 'project/cmake/modules/FindSqlite3.cmake') 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 @@ +# - Try to find SQLITE3 +# Once done this will define +# +# SQLITE3_FOUND - system has sqlite3 +# SQLITE3_INCLUDE_DIRS - the sqlite3 include directory +# SQLITE3_LIBRARIES - The sqlite3 libraries + +if(PKG_CONFIG_FOUND) + pkg_check_modules (SQLITE3 sqlite3) + list(APPEND SQLITE3_INCLUDE_DIRS ${SQLITE3_INCLUDEDIR}) +else() + find_path(SQLITE3_INCLUDE_DIRS sqlite3.h) + find_library(SQLITE3_LIBRARIES sqlite3) +endif() + +include(FindPackageHandleStandardArgs) +find_package_handle_standard_args(Sqlite3 DEFAULT_MSG SQLITE3_INCLUDE_DIRS SQLITE3_LIBRARIES) + +mark_as_advanced(SQLITE3_INCLUDE_DIRS SQLITE3_LIBRARIES) -- cgit v1.2.3