forked from gwaldron/osgearth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFindSqlite3.cmake
49 lines (44 loc) · 1.16 KB
/
FindSqlite3.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Locate SQLITE3
# This module defines
# SQLITE3_LIBRARY
# SQLITE3_FOUND, if false, do not try to link to expat
# SQLITE3_INCLUDE_DIR, where to find the headers
FIND_PATH(SQLITE3_INCLUDE_DIR sqlite3.h
PATHS
${SQLITE3_DIR}/include/sqlite
$ENV{SQLITE3_DIR}/include/sqlite
$ENV{SQLITE3_DIR}/Source/lib/sqlite #Windows Binary Installer
$ENV{SQLITE3_DIR}/sqlite
~/Library/Frameworks/sqlite
/Library/Frameworks/sqlite
/usr/local/include
/usr/include
/sw/include # Fink
/opt/local/include # DarwinPorts
/opt/csw/include # Blastwave
/opt/include
/usr/freeware/include
/devel
)
FIND_LIBRARY(SQLITE3_LIBRARY
NAMES
sqlite3 libsqlite3
PATHS
${SQLITE3_DIR}/lib
$ENV{SQLITE3_DIR}/lib
$ENV{SQLITE3_DIR}/bin #Windows Binary Installer
$ENV{SQLITE3_DIR}
~/Library/Frameworks
/Library/Frameworks
/usr/local/lib
/usr/lib
/sw/lib
/opt/local/lib
/opt/csw/lib
/opt/lib
/usr/freeware/lib64
)
SET(SQLITE3_FOUND "NO")
IF(SQLITE3_LIBRARY AND SQLITE3_INCLUDE_DIR)
SET(SQLITE3_FOUND "YES")
ENDIF(SQLITE3_LIBRARY AND SQLITE3_INCLUDE_DIR)