This repository has been archived by the owner on Nov 20, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
59 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
############################################################################### | ||
# CMake module to search for SQLite library | ||
# | ||
# On success, the macro sets the following variables: | ||
# SQLITE_FOUND = if the library found | ||
# SQLITE_LIBRARY = full path to the library | ||
# SQLITE_LIBRARIES = full path to the library | ||
# SSQLITE_INCLUDE_DIR = where to find the library headers | ||
# | ||
# Copyright (c) 2009 Mateusz Loskot <mateusz@loskot.net> | ||
# | ||
# Redistribution and use is allowed according to the terms of the BSD license. | ||
# For details see the accompanying COPYING-CMAKE-SCRIPTS file. | ||
# | ||
############################################################################### | ||
|
||
|
||
find_path(SQLITE_INCLUDE_DIR | ||
NAMES sqlite.h | ||
PATH_PREFIXES sqlite | ||
PATHS | ||
/usr/include | ||
/usr/local/include | ||
$ENV{LIB_DIR}/include | ||
$ENV{LIB_DIR}/include/sqlite | ||
$ENV{ProgramFiles}/SQLite/*/include | ||
$ENV{SystemDrive}/SQLite/*/include | ||
) | ||
|
||
set(SQLITE_NAMES sqlite) | ||
find_library(SQLITE_LIBRARY | ||
NAMES ${SQLITE_NAMES} | ||
PATHS | ||
/usr/lib | ||
/usr/local/lib | ||
$ENV{LIB_DIR}/lib | ||
$ENV{ProgramFiles}/SQLite/*/lib | ||
$ENV{SystemDrive}/SQLite/*/lib | ||
) | ||
|
||
set(SQLITE_LIBRARIES ${SQLITE_LIBRARY}) | ||
|
||
#message(STATUS ${SQLITE_LIBRARY}) | ||
# Handle the QUIETLY and REQUIRED arguments and set SQLITE_FOUND to TRUE | ||
# if all listed variables are TRUE | ||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(SQLITE | ||
DEFAULT_MSG | ||
SQLITE_LIBRARY | ||
SQLITE_INCLUDE_DIR) | ||
|
||
mark_as_advanced(SQLITE_LIBRARY SQLITE_INCLUDE_DIR SQLITE_LIBRARY) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
--- This file is part of LuaDist project | ||
|
||
name = "luasql" | ||
name = "luasql-sqlite" | ||
version = "2.3.0" | ||
|
||
desc = "Database connectivity for Lua" | ||
desc = "Database connectivity for Lua - SQLite driver" | ||
author = "Roberto Ierusalimschy, André Carregal, Tomás Guisasola" | ||
license = "Kepler" | ||
maintainer = "Peter Kapec" | ||
url = "http://www.keplerproject.org/luasql/" | ||
|
||
depends = { | ||
"lua ~> 5.1", | ||
"luasql-2.3.0", | ||
"libsqlite > 2.8", | ||
} |